PayPal\Api\InvoiceAddress::getPhone PHP Méthode

getPhone() public méthode

Phone number in E.123 format.
public getPhone ( ) : Phone
Résultat Phone
    public function getPhone()
    {
        return $this->phone;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param InvoiceAddress $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getLine1(), "TestSample");
     $this->assertEquals($obj->getLine2(), "TestSample");
     $this->assertEquals($obj->getCity(), "TestSample");
     $this->assertEquals($obj->getCountryCode(), "TestSample");
     $this->assertEquals($obj->getPostalCode(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getPhone(), PhoneTest::getObject());
 }
InvoiceAddress