| 1 | <?php |
||
| 10 | class GuzzleReader implements ResourceReader |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ClientInterface |
||
| 14 | */ |
||
| 15 | private $client; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var \Alchemy\Zippy\Resource\Resource |
||
| 19 | */ |
||
| 20 | private $resource; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param ResourceUri $resource |
||
| 24 | * @param ClientInterface $client |
||
| 25 | */ |
||
| 26 | public function __construct(ResourceUri $resource, ClientInterface $client = null) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getContents() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return resource |
||
| 42 | */ |
||
| 43 | public function getContentsAsStream() |
||
| 55 | |||
| 56 | private function buildRequest() |
||
| 60 | } |
||
| 61 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..