public function getUserMail(User $user)
    {
        $userMail = current($user->getPropertyValues(GenerisRdf::PROPERTY_USER_MAIL));
        
        if (!$userMail || !filter_var($userMail, FILTER_VALIDATE_EMAIL)) {
            throw new Exception('User email is not valid.');
        }
        
        return $userMail;
    }
public function getUserMail(User $user)
    {
        $userMail = current($user->getPropertyValues(GenerisRdf::PROPERTY_USER_MAIL));
        
        if (!$userMail || !filter_var($userMail, FILTER_VALIDATE_EMAIL)) {
            throw new Exception('User email is not valid.');
        }
        
        return $userMail;
    }
public function getUserMail ( User $ user ) { $ userMail = current ( $ user -> getPropertyValues ( GenerisRdf :: PROPERTY_USER_MAIL ) ) ; if ( ! $ userMail || ! filter_var ( $ userMail , FILTER_VALIDATE_EMAIL ) ) { throw new Exception ( 'User email is not valid.' ) ; } return $ userMail ; }
Get user email address.
@param User $user
@return string
@throws Exception if email address is not valid
Get user email address .