PayPal\Api\BillingInfo::getPhone PHP Method

getPhone() public method

Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
public getPhone ( ) : Phone
return Phone
    public function getPhone()
    {
        return $this->phone;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param BillingInfo $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getEmail(), "TestSample");
     $this->assertEquals($obj->getFirstName(), "TestSample");
     $this->assertEquals($obj->getLastName(), "TestSample");
     $this->assertEquals($obj->getBusinessName(), "TestSample");
     $this->assertEquals($obj->getAddress(), InvoiceAddressTest::getObject());
     $this->assertEquals($obj->getLanguage(), "TestSample");
     $this->assertEquals($obj->getAdditionalInfo(), "TestSample");
     $this->assertEquals($obj->getNotificationChannel(), "TestSample");
     $this->assertEquals($obj->getPhone(), PhoneTest::getObject());
 }