PayPal\Api\Patch::getFrom PHP Method

getFrom() public method

A string containing a JSON Pointer value that references the location in the target document to move the value from.
public getFrom ( ) : string
return string
    public function getFrom()
    {
        return $this->from;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param Patch $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getOp(), "TestSample");
     $this->assertEquals($obj->getPath(), "TestSample");
     $this->assertEquals($obj->getValue(), "TestSampleObject");
     $this->assertEquals($obj->getFrom(), "TestSample");
 }