PayPal\Api\CustomAmount::getLabel PHP Method

getLabel() public method

The custom amount label. Maximum length is 25 characters.
public getLabel ( ) : string
return string
    public function getLabel()
    {
        return $this->label;
    }

Usage Example

Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param CustomAmount $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getLabel(), "TestSample");
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
 }