lib/Github/Api/CurrentUser/Emails.php
public function add($emails)
    {
        if (is_string($emails)) {
            $emails = [$emails];
        } elseif (0 === count($emails)) {
            throw new InvalidArgumentException('The user emails parameter should be a single email or an array of emails');
        }

        return $this->post('/user/emails', $emails);
    }
public function add($emails)
    {
        if (is_string($emails)) {
            $emails = [$emails];
        } elseif (0 === count($emails)) {
            throw new InvalidArgumentException('The user emails parameter should be a single email or an array of emails');
        }

        return $this->post('/user/emails', $emails);
    }
public function add ( $ emails ) { if ( is_string ( $ emails ) ) { $ emails = [ $ emails ] ; } elseif ( 0 === count ( $ emails ) ) { throw new InvalidArgumentException ( 'The user emails parameter should be a single email or an array of emails' ) ; } return $ this -> post ( '/user/emails' , $ emails ) ; }
Adds one or more email for the authenticated user.

@link http://developer.github.com/v3/users/emails/

@param string|array $emails

@throws \Github\Exception\InvalidArgumentException

@return array
Adds one or more email for the authenticated user .