1 | <?php |
||
11 | class Rest { |
||
12 | /** |
||
13 | * @var Config |
||
14 | */ |
||
15 | protected $config; |
||
16 | |||
17 | protected $endpoint; |
||
18 | protected $method; |
||
19 | protected $storagePath; |
||
20 | public $headers = []; |
||
21 | |||
22 | /** |
||
23 | * @var Psr7\Stream |
||
24 | */ |
||
25 | protected $file; |
||
26 | |||
27 | |||
28 | public function __construct(Config $config) { |
||
32 | |||
33 | public function request($method, $storagePath) { |
||
38 | |||
39 | |||
40 | /** |
||
41 | * @param string|resource $file |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function withFile($file) { |
||
51 | |||
52 | /** |
||
53 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
54 | */ |
||
55 | public function send() { |
||
85 | |||
86 | public function withHeader($header, $value) { |
||
92 | |||
93 | public function withHeaders($headers) { |
||
101 | } |
||
102 |
This check looks for access to properties that are not accessible from the current context.
If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.