コード例 #1
0
ファイル: TimezoneDb.php プロジェクト: wyndow/teazee
 /**
  * TimeZoneDB Constructor.
  *
  * @param string         $apiKey
  * @param bool           $premium
  * @param HttpClient     $client
  * @param MessageFactory $messageFactory
  */
 public function __construct($apiKey, $premium = false, HttpClient $client = null, MessageFactory $messageFactory = null)
 {
     parent::__construct($client, $messageFactory);
     $this->apiKey = $apiKey;
     $this->host = (bool) $premium ? static::VIP_ENDPOINT : static::ENDPOINT;
 }
コード例 #2
0
ファイル: GoogleMaps.php プロジェクト: wyndow/teazee
 /**
  * Google constructor.
  *
  * @param string         $apiKey
  * @param HttpClient     $client
  * @param MessageFactory $messageFactory
  */
 public function __construct($apiKey = null, HttpClient $client = null, MessageFactory $messageFactory = null)
 {
     $this->apiKey = $apiKey;
     parent::__construct($client, $messageFactory);
 }