PayPal\Api\BillingInfo::getFirstName PHP Method

getFirstName() public method

The invoice recipient first name. Maximum length is 30 characters.
public getFirstName ( ) : string
return string
    public function getFirstName()
    {
        return $this->first_name;
    }

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