| 1 | <?php |
||
| 12 | class LegacyGuzzleReader implements ResourceReader |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ClientInterface |
||
| 16 | */ |
||
| 17 | private $client; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ResourceUri $resource |
||
| 21 | */ |
||
| 22 | private $resource; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * This is necessary to prevent the underlying PHP stream from being destroyed |
||
| 26 | * @link https://github.com/guzzle/guzzle/issues/366#issuecomment-20295409 |
||
| 27 | * @var EntityBodyInterface|null |
||
| 28 | */ |
||
| 29 | private $stream = null; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param ResourceUri $resource |
||
| 33 | * @param ClientInterface $client |
||
| 34 | */ |
||
| 35 | public function __construct(ResourceUri $resource, ClientInterface $client = null) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getContents() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return resource |
||
| 51 | */ |
||
| 52 | public function getContentsAsStream() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return \Guzzle\Http\Message\RequestInterface |
||
| 63 | */ |
||
| 64 | private function buildRequest() |
||
| 68 | } |
||
| 69 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.