예제 #1
0
파일: Video.php 프로젝트: NicolasSchmutz/cm
 public function toArray()
 {
     $array = parent::toArray();
     $array['key'] = $this->getKey();
     if ($this->hasStreamPublish()) {
         $array['user'] = $this->getStreamPublish()->getUser();
     }
     return $array;
 }