Esempio n. 1
0
 /**
  * Magic getter for retrieving convenience properties
  *
  * @param string $property The name of the property to retrieve
  *
  * @return mixed
  */
 public function __get($property)
 {
     switch ($property) {
         case 'id':
             return $this->versionInfo->contentInfo->id;
         case 'contentInfo':
             return $this->versionInfo->contentInfo;
     }
     return parent::__get($property);
 }
 public function __get($property)
 {
     switch ($property) {
         case 'contentInfo':
             return $this->getContentInfo();
         case 'versionInfo':
             return $this->getVersionInfo();
     }
     return parent::__get($property);
 }