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(); }
function it_is_client_registered_if_exists_in_system(Name $name, Email $email) { $this->beConstructedWith($name->getWrappedObject(), $email->getWrappedObject(), $isRegistered = true); $this->isRegistered()->shouldReturn(true); }