/** * @param array $config * @param string $env */ public function __construct(array $config = [], $env = self::ENV_PROD) { // Apply some defaults. $config += ['description_path' => __DIR__ . '/descriptions/feed.php']; // Create the client. parent::__construct($config, $env); }
/** * @param array $config */ public function __construct(array $config = []) { // Apply some defaults. $config += ['description_path' => \realpath(__DIR__ . '/descriptions/user.php'), 'data_type' => 'JSON']; // Create the client. parent::__construct($config); }
/** * Constructor. * Initializes the object with the given configuration `$aConfig`. * @param array $aConfig name-value pairs that will be used to initialize the object properties */ public function __construct($aConfig) { parent::__construct($aConfig); $this->protocol = $this->serverPort == self::PROTOCOL_SECURE_PORT ? self::PROTOCOL_SECURE : self::PROTOCOL_UNSECURE; }
/** * @param string Base URL to the Engine Instance. Default is localhost:8000. * @param float Timeout of the request in seconds. Use 0 to wait indefinitely * Default is 0. * @param float Number of seconds to wait while trying to connect to a server. * Default is 5. */ public function __construct($baseUrl = "http://localhost:8000", $timeout = 0, $connectTimeout = 5) { parent::__construct($baseUrl, $timeout, $connectTimeout); }
/** * @param string $key Heuréka klíč (32 znaků) anebo celá adresa pro stahování importu * @param \DateTime $from Volitelně lze omezit, odkdy chceš recenze stáhnout. Max 6 měsíců zpátky. Funguje jen zadáš-li jako $key 32znakový klíč. */ function __construct($key = null, \DateTime $from = null) { parent::__construct($key); $this->setKey($key, $from); }