public function get_context() {
        if (isset($this->context)) {
            return $this->context;
        }
        $this->context = \context::instance_by_id($this->data['contextid'], IGNORE_MISSING);
        return $this->context;
    }
public function get_context() {
        if (isset($this->context)) {
            return $this->context;
        }
        $this->context = \context::instance_by_id($this->data['contextid'], IGNORE_MISSING);
        return $this->context;
    }
public function get_context ( ) { if ( isset ( $ this -> context ) ) { return $ this -> context ; } $ this -> context = \ context :: instance_by_id ( $ this -> data [ 'contextid' ] , IGNORE_MISSING ) ; return $ this -> context ; }
Returns event context.
@return \context
Returns event context .