PayPal\Api\Template::getDefault PHP Méthode

getDefault() public méthode

Indicates that this template is merchant's default. There can be only one template which can be a default.
public getDefault ( ) : boolean
Résultat boolean
    public function getDefault()
    {
        return $this->default;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param Template $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getTemplateId(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDefault(), true);
     $this->assertEquals($obj->getTemplateData(), TemplateDataTest::getObject());
     $this->assertEquals($obj->getSettings(), TemplateSettingsTest::getObject());
     $this->assertEquals($obj->getUnitOfMeasure(), "TestSample");
     $this->assertEquals($obj->getCustom(), true);
 }