/** * {@inheritdoc} */ public function __get($property) { switch ($property) { case 'text': return $this->{$property}; } return parent::__get($property); }
/** * {@inheritdoc} */ public function __get($property) { switch ($property) { case 'code': case 'statement': return $this->{$property}; } return parent::__get($property); }
/** * Construct internal node. */ public function __construct() { parent::__construct(); $this->root = $this; }