Example #1
0
 /**
  * Export this Entity collection. Default is array.
  *
  * @param \Hynage\ORM\ExportStrategy\Exporting $strategy
  * @return mixed
  */
 public function export(ExportStrategy\Exporting $strategy)
 {
     return $strategy->exportCollection($this);
 }
Example #2
0
 /**
  * Export this Entity. Default is array.
  *
  * @param \Hynage\ORM\ExportStrategy\Exporting $strategy
  * @return mixed
  */
 public function export(ExportStrategy\Exporting $strategy)
 {
     return $strategy->exportEntity($this);
 }