/** * @param CustomerInterface $customer */ protected function assignUser(CustomerInterface $customer = null) { if (null !== $customer) { $customer->setUser($this); } }