public function __construct() { parent::__construct(ResourceType::BITCOIN_NETWORK); }
public function testConstructorId() { $resource = new Resource(null, '/v2/widgets/WIDGET_ID'); $this->assertEquals('WIDGET_ID', $resource->getId()); }
public function __construct($type = null, $resourcePath = null) { parent::__construct(ResourceType::TRANSACTION, $resourcePath); $this->type = $type; }
public function __construct($resourcePath = null) { parent::__construct(ResourceType::NOTIFICATION, $resourcePath); }
public function __construct($resourcePath = null) { parent::__construct(ResourceType::CHECKOUT, $resourcePath); }
public function __construct($address) { parent::__construct(ResourceType::BITCOIN_ADDRESS); $this->address = $address; }
/** @return \ReflectionProperty[] */ private function getReflectionProperties(Resource $resource) { $type = $resource->getResourceType(); if (isset($this->reflection[$type])) { return $this->reflection[$type]; } $class = new \ReflectionObject($resource); $properties = []; do { foreach ($class->getProperties() as $property) { $property->setAccessible(true); $properties[self::snakeCase($property->getName())] = $property; } } while ($class = $class->getParentClass()); return $this->reflection[$type] = $properties; }
public function __construct($resourcePath = null) { parent::__construct(ResourceType::ADDRESS, $resourcePath); }
public function __construct($resourcePath = null) { parent::__construct('test', $resourcePath); }
public function __construct($email) { parent::__construct(ResourceType::EMAIL); $this->email = $email; }
public function __construct($resourcePath = null) { parent::__construct(ResourceType::PAYMENT_METHOD, $resourcePath); }
public function __construct($resourcePath = null) { parent::__construct(ResourceType::MERCHANT, $resourcePath); }