PayPal\Api\RelatedResources::getAuthorization PHP Method

getAuthorization() public method

Authorization transaction
public getAuthorization ( ) : Authorization
return Authorization
    public function getAuthorization()
    {
        return $this->authorization;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param RelatedResources $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getSale(), SaleTest::getObject());
     $this->assertEquals($obj->getAuthorization(), AuthorizationTest::getObject());
     $this->assertEquals($obj->getOrder(), OrderTest::getObject());
     $this->assertEquals($obj->getCapture(), CaptureTest::getObject());
     $this->assertEquals($obj->getRefund(), RefundTest::getObject());
 }