PayPal\Api\FileAttachment::getName PHP Method

getName() public method

Name of the file attached.
public getName ( ) : string
return string
    public function getName()
    {
        return $this->name;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param FileAttachment $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getUrl(), "http://www.google.com");
 }