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