'/opt/jenkins/jobs/VuFindHttp/workspace/src/VuFindHttp/HttpService.php-1663223827', 'data' => array ( '6d483389146df78fe921dbf38a4374b3' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * VuFind HTTP service class file. * * PHP version 7 * * Copyright (C) Villanova University 2010. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category VuFind * @package Http * @author David Maus * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link https://vufind.org/wiki/development */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => NULL, 'uses' => array ( ), 'className' => NULL, 'functionName' => NULL, 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), 'e9227d32a7e331322bc2aad808976e73' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * VuFind HTTP service. * * @category VuFind * @package Http * @author David Maus * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link https://vufind.org/wiki/development */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => NULL, 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '1b659e62f96c27cb904036c6b46f7224' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Default regular expression matching a request to localhost. * * @var string */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => NULL, 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '995ab68068c0aa3e1d9bbe504ae00dc7' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Proxy configuration. * * @see \\Laminas\\Http\\Client\\Adapter\\Proxy::$config * * @var array */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => NULL, 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), 'f9568349dfffd32b3615d34a52ddd8da' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Regular expression matching a request to localhost or hosts * that are not proxied. * * @see \\Laminas\\Http\\Client\\Adapter\\Proxy::$config * * @var string */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => NULL, 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), 'f9914b8b920ee07028368f84610bf226' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Default client options. * * @var array */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => NULL, 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), 'a3e4ee03149f05b1675c17aede11db1c' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Default adapter * * @var \\Laminas\\Http\\Client\\Adapter\\AdapterInterface */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => NULL, 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '1e0838bfd5b42adbf93e4833febab86a' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Constructor. * * @param array $proxyConfig Proxy configuration * @param array $defaults Default HTTP options * @param array $config Other configuration * * @return void */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => '__construct', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '4befb505d923349ad6e790d9be33d416' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Set proxy options in a Curl adapter. * * @param \\Laminas\\Http\\Client\\Adapter\\Curl $adapter Adapter to configure * * @return void */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'setCurlProxyOptions', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), 'dcbf2c5e1eeb3c499e55da2e4765c0ef' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Are we configured to use the CURL adapter? * * @return bool */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'hasCurlAdapterAsDefault', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '9caaf615a1f2efae0e332c2c1253ccf2' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Proxify an existing client. * * Returns the client given as argument with appropriate proxy setup. * * @param \\Laminas\\Http\\Client $client HTTP client * @param array $options Laminas ProxyAdapter options * * @return \\Laminas\\Http\\Client */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'proxify', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '0a02671b62a9be7fc422e27cf8e9a57c' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Perform a GET request. * * @param string $url Request URL * @param array $params Request parameters * @param float $timeout Request timeout in seconds * @param array $headers Request headers * * @return \\Laminas\\Http\\Response */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'get', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), 'b4868effdcceb958195e815821243b4c' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Perform a POST request. * * @param string $url Request URL * @param mixed $body Request body document * @param string $type Request body content type * @param float $timeout Request timeout in seconds * @param array $headers Request http-headers * * @return \\Laminas\\Http\\Response */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'post', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '0582c0d5f4e65b6c3fa473bfcd9f3425' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Post form data. * * @param string $url Request URL * @param array $params Form data * @param float $timeout Request timeout in seconds * * @return \\Laminas\\Http\\Response */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'postForm', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '34ca9eb849c6bdca4128d9a85aea7415' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Set a default HTTP adapter (primarily for testing purposes). * * @param \\Laminas\\Http\\Client\\Adapter\\AdapterInterface $adapter Adapter * * @return void */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'setDefaultAdapter', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '265cecda3f684dfe6de4c7609cda278d' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Return a new HTTP client. * * @param string $url Target URL * @param string $method Request method * @param float $timeout Request timeout in seconds * * @return \\Laminas\\Http\\Client */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'createClient', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '1c18c02cfa81b44a47ac58bf0c35ef7d' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Return query string based on params. * * @param array $params Parameters * * @return string */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'createQueryString', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '4bf479a11506ed0a6e84a1eb6d600d00' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Send HTTP request and return response. * * @param \\Laminas\\Http\\Client $client HTTP client to use * * @throws Exception\\RuntimeException * @return \\Laminas\\Http\\Response * * @todo Catch more exceptions, maybe? */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'send', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '9cc02296810e685781c31000f6839a11' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Return TRUE if argument is an associative array. * * @param array $array Array to test * * @return boolean */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'isAssocParams', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), '5460d3a44c3f959780adc2953fb16565' => PHPStan\PhpDoc\NameScopedPhpDocString::__set_state(array( 'phpDocString' => '/** * Return TRUE if argument refers to localhost. * * @param string $host Host to check * * @return boolean */', 'nameScope' => PHPStan\Analyser\NameScope::__set_state(array( 'namespace' => 'VuFindHttp', 'uses' => array ( ), 'className' => 'VuFindHttp\\HttpService', 'functionName' => 'isLocal', 'templateTypeMap' => PHPStan\Type\Generic\TemplateTypeMap::__set_state(array( 'types' => array ( ), )), 'typeAliasesMap' => array ( ), 'bypassTypeAliases' => false, )), )), ), ));