public function __construct(Company $company) { $this->id = $company->getId(); $this->name = $company->getName(); }