コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function add(User $user)
 {
     $this->users[$user->id()->id()] = $user;
 }
コード例 #2
0
 /**
  * @param UserId $userId
  * @param string $email
  * @param string $password
  */
 public function __construct(UserId $userId, $email, $password)
 {
     parent::__construct($userId, $email, $password);
     $this->surrogateUserId = $userId->id();
 }
コード例 #3
0
 /**
  * @test
  */
 public function itShouldRemoveWish()
 {
     $this->deleteWishService->execute(new DeleteWishRequest($this->dummyWish->id()->id(), $this->dummyUser->id()->id()));
     $this->assertNull($this->wishRepository->wishOfId($this->dummyWish->id()));
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 public function persist(User $user)
 {
     $this->users[$user->id()->id()] = $user;
 }