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