public function __construct()
 {
     parent::__construct(ResourceType::BITCOIN_NETWORK);
 }
Example #2
0
 public function testConstructorId()
 {
     $resource = new Resource(null, '/v2/widgets/WIDGET_ID');
     $this->assertEquals('WIDGET_ID', $resource->getId());
 }
Example #3
0
 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);
 }
Example #5
0
 public function __construct($resourcePath = null)
 {
     parent::__construct(ResourceType::CHECKOUT, $resourcePath);
 }
 public function __construct($address)
 {
     parent::__construct(ResourceType::BITCOIN_ADDRESS);
     $this->address = $address;
 }
Example #7
0
 /** @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;
 }
Example #8
0
 public function __construct($resourcePath = null)
 {
     parent::__construct(ResourceType::ADDRESS, $resourcePath);
 }
 public function __construct($resourcePath = null)
 {
     parent::__construct('test', $resourcePath);
 }
Example #10
0
 public function __construct($email)
 {
     parent::__construct(ResourceType::EMAIL);
     $this->email = $email;
 }
 public function __construct($resourcePath = null)
 {
     parent::__construct(ResourceType::PAYMENT_METHOD, $resourcePath);
 }
Example #12
0
 public function __construct($resourcePath = null)
 {
     parent::__construct(ResourceType::MERCHANT, $resourcePath);
 }