Exemple #1
0
 public function buildCompany(Company $company)
 {
     $data = [];
     $data['REV'] = $company->getLastUpdated()->format(self::DATE_FORMAT);
     $data['KIND'] = 'organization';
     $data['FN'] = $company->getName();
     $data['N'] = [$company->getName()];
     return $this->buildObject($data);
 }
Exemple #2
0
 public function __construct(Company $company)
 {
     $this->id = $company->getId();
     $this->name = $company->getName();
 }
Exemple #3
0
 private function extractCompany(Company $item, array &$data)
 {
     $data['type'] = 'company';
     $data['name'] = $item->getName();
 }