/** * \brief BillingAddressClientのインスタンス生成 * * @param $endpoint_url エンドポイントURL */ public function __construct($access_token) { if (is_string($access_token)) { $access_token = new BearerToken($access_token, null); } parent::__construct($access_token); $this->url = self::BILLINGADDRESS_URL; }
/** * \brief UserInfoClientのインスタンス生成 * * @param $endpoint_url エンドポイントURL * @param $schema schema */ public function __construct($endpoint_url, $access_token, $schema = null) { if (is_string($access_token)) { $access_token = new BearerToken($access_token, null); } parent::__construct($access_token); $this->url = $endpoint_url; $this->access_token = $access_token; if ($schema != null) { $this->schema = $schema; } }