Exemple #1
0
 public function __construct(HttpAdapterInterface $httpAdapter, $provider, $fixedMargin = null, $marginMultiplier = null)
 {
     parent::__construct($httpAdapter);
     $this->provider = $provider;
     $this->fixedMargin = $fixedMargin;
     $this->marginMultiplier = $marginMultiplier;
 }
 /**
  * @param HttpAdapterInterface $httpAdapter
  * @param $secondProvider
  * @param $mainProvider
  * @param int $criticalDifference
  */
 public function __construct(HttpAdapterInterface $httpAdapter, $secondProvider, $mainProvider, $criticalDifference = 20)
 {
     parent::__construct($httpAdapter);
     $this->mainProvider = $mainProvider;
     $this->secondProvider = $secondProvider;
 }
 /**
  * Creates a new provider.
  *
  * @param HttpAdapterInterface $httpAdapter The HTTP client
  * @param string               $appId       The application id.
  * @param boolean              $enterprise  A flag to tell if it is in enterprise mode
  */
 public function __construct(HttpAdapterInterface $httpAdapter, $appId, $enterprise = false)
 {
     parent::__construct($httpAdapter);
     $this->appId = $appId;
     $this->enterprise = $enterprise;
 }
Exemple #4
0
 /**
  * Creates a new provider.
  *
  * @param HttpAdapterInterface $httpAdapter The HTTP adapter
  * @param string               $token  The application token
  */
 public function __construct(HttpAdapterInterface $httpAdapter, $token)
 {
     parent::__construct($httpAdapter);
     $this->token = $token;
 }