public function get_context() {
        if ($this->context == null) {
            $this->context = context_module::instance($this->get_cm()->id);
        }
        return $this->context;
    }
public function get_context() {
        if ($this->context == null) {
            $this->context = context_module::instance($this->get_cm()->id);
        }
        return $this->context;
    }
public function get_context ( ) { if ( $ this -> context == null ) { $ this -> context = context_module :: instance ( $ this -> get_cm ( ) -> id ) ; } return $ this -> context ; }
Return the lesson context object.

@return stdClass context
@since  Moodle 3.3
Return the lesson context object .