PayPal\Api\ShippingInfo::getLastName PHP Method

getLastName() public method

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

Usage Example

Exemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param ShippingInfo $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getFirstName(), "TestSample");
     $this->assertEquals($obj->getLastName(), "TestSample");
     $this->assertEquals($obj->getBusinessName(), "TestSample");
     $this->assertEquals($obj->getAddress(), AddressTest::getObject());
 }