Пример #1
0
 public function exportWith(ExportInterface $exporter)
 {
     return $exporter->exportFromArray($this->toArray());
 }
Пример #2
0
 /**
  * @param ExportInterface $exportStrategy
  * @return string
  */
 public function exportTo(ExportInterface $exportStrategy)
 {
     return $exportStrategy->export($this->path);
 }