1 | <?php |
||
10 | class Rest { |
||
11 | /** |
||
12 | * @var Config |
||
13 | */ |
||
14 | protected $config; |
||
15 | |||
16 | protected $endpoint; |
||
17 | protected $method; |
||
18 | protected $storagePath; |
||
19 | public $headers = []; |
||
20 | |||
21 | /** |
||
22 | * @var Psr7\Stream |
||
23 | */ |
||
24 | protected $file; |
||
25 | |||
26 | |||
27 | public function __construct(Config $config) { |
||
31 | |||
32 | public function request($method, $storagePath) { |
||
37 | |||
38 | |||
39 | /** |
||
40 | * @param string|resource $file |
||
41 | * |
||
42 | * @return $this |
||
43 | */ |
||
44 | public function withFile($file) { |
||
50 | |||
51 | /** |
||
52 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
53 | */ |
||
54 | public function send() { |
||
75 | |||
76 | public function withHeader($header, $value) { |
||
82 | |||
83 | public function withHeaders($headers) { |
||
91 | } |
||
92 |
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.