Exemplo n.º 1
0
 /**
  * @param ClientInterface $client
  * @param array           $config
  */
 public function __construct(ClientInterface $client, array $config = [])
 {
     parent::__construct($client, $config);
     if (!$this->config[self::CONFIG_PRIVATE_KEY] instanceof SplFileObject) {
         throw new InvalidArgumentException('private_key needs to be instance of SplFileObject');
     }
 }
 /**
  * @param ClientInterface $client
  * @param array           $config
  */
 public function __construct(array $config = [])
 {
     parent::__construct($config);
     if (!$this->config->get('private_key') instanceof SplFileObject) {
         throw new InvalidArgumentException('private_key needs to be instance of SplFileObject');
     }
 }