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); }
public function __construct(Company $company) { $this->id = $company->getId(); $this->name = $company->getName(); }
private function extractCompany(Company $item, array &$data) { $data['type'] = 'company'; $data['name'] = $item->getName(); }