PayPal\Api\Error::getName PHP Method

getName() public method

Human readable, unique name of the error.
public getName ( ) : string
return string
    public function getName()
    {
        return $this->name;
    }

Usage Example

Beispiel #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Error $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDebugId(), "TestSample");
     $this->assertEquals($obj->getMessage(), "TestSample");
     $this->assertEquals($obj->getInformationLink(), "TestSample");
     $this->assertEquals($obj->getDetails(), ErrorDetailsTest::getObject());
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }
All Usage Examples Of PayPal\Api\Error::getName