protected function generateEmail(OAuthInterface $oauth) { $email = $oauth->getEmail(); if (!$email) { $email = $oauth->getOwner() . '-' . $oauth->getUsername() . '@' . ''; } return $email; }
public function addOAuth(OAuthInterface $oauth) { $this->oauths[$oauth->getOwner()] = $oauth; return $this; }