コード例 #1
0
 public function __invoke(Account $account)
 {
     $accountId = $account->getId();
     $accountEmail = $account->getEmail();
     $this->accountRepository->deleteAccount($account);
     return ['id' => $accountId, 'email' => $accountEmail, 'entity' => $account];
 }
コード例 #2
0
ファイル: Account.php プロジェクト: cass-project/cass
 public function equals(Account $compare) : bool
 {
     return $compare->getId() === $this->getId();
 }