PayPal\Api\ErrorDetails::getField PHP Method

getField() public method

Name of the field that caused the error.
public getField ( ) : string
return string
    public function getField()
    {
        return $this->field;
    }

Usage Example

Esempio n. 1
0
 /**
  * @depends testSerializationDeserialization
  * @param ErrorDetails $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getField(), "TestSample");
     $this->assertEquals($obj->getIssue(), "TestSample");
     $this->assertEquals($obj->getPurchaseUnitReferenceId(), "TestSample");
     $this->assertEquals($obj->getCode(), "TestSample");
 }
All Usage Examples Of PayPal\Api\ErrorDetails::getField