PayPal\Api\BillingInfo::getLanguage PHP Method

getLanguage() public method

The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
public getLanguage ( ) : string
return string
    public function getLanguage()
    {
        return $this->language;
    }

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());
 }