コード例 #1
0
ファイル: Video.php プロジェクト: rashidfawad/symfony.se
 /**
  *
  *
  * @return \DateTime
  */
 public function getRecordedAt()
 {
     $posted = $this->getMeta('timestamp');
     if (!$posted) {
         return parent::getPostedAt();
     }
     return new \DateTime($posted);
 }
コード例 #2
0
ファイル: Event.php プロジェクト: rashidfawad/symfony.se
 /**
  *
  *
  * @return \DateTime
  */
 public function getTime()
 {
     $timestamp = $this->getMeta('timestamp');
     if (!$timestamp) {
         return parent::getPostedAt();
     }
     return new \DateTime($timestamp);
 }