/** * Magic isset for signaling existence of convenience properties. * * @param string $property * * @return bool */ public function __isset($property) { if ($property === 'contentId' || $property === 'path') { return true; } return parent::__isset($property); }
public function __get($property) { switch ($property) { case 'id': return $this->getContentInfo()->id; } return parent::__get($property); }