src/Resource/Account.php
public function setPhone($areaCode, $number, $countryCode = 55)
    {
        $this->data->person->phone = new stdClass();
        $this->data->person->phone->countryCode = $countryCode;
        $this->data->person->phone->areaCode = $areaCode;
        $this->data->person->phone->number = $number;

        return $this;
    }
public function setPhone($areaCode, $number, $countryCode = 55)
    {
        $this->data->person->phone = new stdClass();
        $this->data->person->phone->countryCode = $countryCode;
        $this->data->person->phone->areaCode = $areaCode;
        $this->data->person->phone->number = $number;

        return $this;
    }
public function setPhone ( $ areaCode , $ number , $ countryCode = 55 ) { $ this -> data -> person -> phone = new stdClass ( ) ; $ this -> data -> person -> phone -> countryCode = $ countryCode ; $ this -> data -> person -> phone -> areaCode = $ areaCode ; $ this -> data -> person -> phone -> number = $ number ; return $ this ; }
Set phone from account.

@param int $areaCode    DDD telephone.
@param int $number      Telephone number.
@param int $countryCode Country code.

@return \Moip\Resource\Account
Set phone from account .