コード例 #1
0
ファイル: TypeEntity.php プロジェクト: blancomen/blanco3
 /**
  * @param Entity $value
  * @return int
  */
 public function serialize($value)
 {
     if (!$value instanceof Entity) {
         return [];
     }
     return ['id' => $value->getId(), 'type' => $value->getType()];
 }