get_value(), self::ACCESS_KEY, __METHOD__, 'The access key ID for the Amazon provider is missing.', '0.9.2'); Assert_Helper::key_exists($credentials->get_value(), self::SECRET_KEY, __METHOD__, 'The secret access key for the Amazon provider is missing.', '0.9.2'); Assert_Helper::key_exists($credentials->get_value(), self::COUNTRY, __METHOD__, 'The country for the Amazon provider is missing.', '0.9.2'); Assert_Helper::key_exists($credentials->get_value(), self::ASSOCIATE_TAG, __METHOD__, 'The associate tag for the Amazon provider is missing.', '0.9.2'); parent::__construct($name, $slug, self::type(), $credentials); $this->access_key = new Access_Key($credentials->get(self::ACCESS_KEY)); $this->secret_key = new Secret_Key($credentials->get(self::SECRET_KEY)); $this->country = new Country($credentials->get(self::COUNTRY)); $this->associate_tag = new Associate_Tag($credentials->get(self::ASSOCIATE_TAG)); } /** * Get the Amazon access key id from the credentials. * * @since 0.8 * @return Access_Key */ public function get_access_key() { return $this->access_key; } /** * Get the Amazon secret access key from the credentials. * * @since 0.8 * @return Secret_Key */ public function get_secret_key() { return $this->secret_key; } /** * Get the Amazon country code from the credentials. * * @since 0.8 * @return Country */ public function get_country() { return $this->country; } /** * Get the Amazon partner tag from the credentials. * * @since 0.8 * @return Associate_Tag */ public function get_associate_tag() { return $this->associate_tag; } }