PayPal\Api\Cost::getPercent PHP Method

getPercent() public method

Cost in percent. Range of 0 to 100.
public getPercent ( ) : string
return string
    public function getPercent()
    {
        return $this->percent;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param Cost $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPercent(), "12.34");
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
 }