protected function get_context() {
        if (!isset($this->properties->context)) {
            $this->properties->context = $this->calculate_context();
        }

        return $this->properties->context;
    }
protected function get_context() {
        if (!isset($this->properties->context)) {
            $this->properties->context = $this->calculate_context();
        }

        return $this->properties->context;
    }
protected function get_context ( ) { if ( ! isset ( $ this -> properties -> context ) ) { $ this -> properties -> context = $ this -> calculate_context ( ) ; } return $ this -> properties -> context ; }
Returns the context for this event. The context is calculated
the first time is is requested and then stored in a member
variable to be returned each subsequent time.

This is a magical getter function that will be called when
ever the context property is accessed, e.g. $event->context.

@return context
Returns the context for this event . The context is calculated the first time is is requested and then stored in a member variable to be returned each subsequent time .