public static function fromAccountCredentials(AccountCredentials $credentials) { return new AccountUser((string) $credentials->getEmail(), $credentials->getPassword(), $credentials->getSalt(), $credentials->getAccountId()); }
public function save(AccountCredentials $accountCredentials) { $this->collection->save($accountCredentials->toPersistableState()); }