public function __construct(Name $name, Email $email, $isRegistered) { $this->_id = Uuid::uuid4()->toString(); $this->_name = $name->getName(); $this->_surname = $name->getSurname(); $this->_email = $email->getEmail(); $this->_isRegistered = $isRegistered; $this->_date_add = new \DateTime("now"); $this->_bankAccount = new ArrayCollection(); }