public function __construct(array $input) { parent::__construct($input); $this->initials = @$input['initials']; $this->lastNamePrefix = @$input['lastNamePrefix']; $this->lastName = @$input['lastName']; $this->dateOfBirth = @$input['dateOfBirth'] ? new \DateTime($input['dateOfBirth']) : null; }
public function __construct(array $input) { parent::__construct($input); $this->memberId = @$input['memberId']; $this->companyName = @$input['companyName']; $this->cocNumber = @$input['cocNumber']; $this->contactPerson = @$input['contactPerson']; }