1 | <?php |
||
18 | class JCFirebase |
||
19 | { |
||
20 | public $firebaseSecret; |
||
21 | public $firebaseURI; |
||
22 | public $firebaseDefaultPath; |
||
23 | |||
24 | public $auth; |
||
25 | public $shallow; |
||
26 | public $print; |
||
27 | public $callback; |
||
28 | public $format; |
||
29 | public $download; |
||
30 | public $orderBy; |
||
31 | public $limitToFirst; |
||
32 | public $limitToLast; |
||
33 | public $startAt; |
||
34 | public $endAt; |
||
35 | public $equalTo; |
||
36 | |||
37 | public $streaming = 'text/event-stream'; |
||
38 | public $priority = '.priority'; |
||
39 | public $serverValues = '.sv'; |
||
40 | |||
41 | public $rulePath = '.settings/rules.json'; |
||
42 | |||
43 | public $requestHeader = array( |
||
44 | 'accept' => 'application/json', |
||
45 | 'contentType' => 'application/json; charset=utf-8', |
||
46 | 'dataType' => 'json' |
||
47 | ); |
||
48 | public $requestOptions = array(); |
||
49 | |||
50 | public function __construct($firebaseURI,$firebaseSecret = '',$firebaseDefaultPath = '/') |
||
56 | |||
57 | public function getPathURI($path = ''){ |
||
81 | |||
82 | |||
83 | /** |
||
84 | * @param array $options |
||
85 | * @return \Requests_Response |
||
86 | */ |
||
87 | public function get($path = '',$options = array()){ |
||
90 | |||
91 | public function put($path = '',$options = array()){ |
||
94 | |||
95 | public function post($path = '',$options = array()){ |
||
98 | |||
99 | public function patch($path = '',$options = array()){ |
||
102 | |||
103 | public function delete($path = '',$options = array()){ |
||
106 | |||
107 | protected function mergeRequestOptions($options = array(),$encode = false){ |
||
123 | } |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.