public function get_cm() {
        if ($this->cm == null) {
            $this->cm = get_coursemodule_from_instance('lesson', $this->properties->id);
        }
        return $this->cm;
    }
public function get_cm() {
        if ($this->cm == null) {
            $this->cm = get_coursemodule_from_instance('lesson', $this->properties->id);
        }
        return $this->cm;
    }
public function get_cm ( ) { if ( $ this -> cm == null ) { $ this -> cm = get_coursemodule_from_instance ( 'lesson' , $ this -> properties -> id ) ; } return $ this -> cm ; }
Return the lesson course module object.

@return stdClass course module
@since  Moodle 3.3
Return the lesson course module object .