/** * @param array $config * @param string $env */ public function __construct(array $config = [], $env = self::ENV_PROD) { // Apply some defaults. $config += ['description_path' => __DIR__ . '/descriptions/item.php']; // Create the client. parent::__construct($config, $env); }
public function __call($name, array $arguments) { /* * Overriding call to list() since I cannot define a method with the same name as a reserved keyword. */ if ($name === 'list') { return $this->listAll($arguments[0]); } return parent::__call($name, $arguments); }