| 1 | <?php |
||
| 12 | class FirebaseStub extends FirebaseLib implements FirebaseInterface |
||
| 13 | { |
||
| 14 | protected $response; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $path |
||
| 18 | * @param mixed $data |
||
| 19 | * @param array $options |
||
| 20 | * @return mixed |
||
| 21 | */ |
||
| 22 | public function set(string $path, $data, array $options = []) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $path |
||
| 29 | * @param mixed $data |
||
| 30 | * @param array $options |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function push(string $path, $data, array $options = []) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $path |
||
| 40 | * @param mixed $data |
||
| 41 | * @param array $options |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | public function update(string $path, $data, array $options = []) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $path |
||
| 51 | * @param array $options |
||
| 52 | * @return mixed |
||
| 53 | */ |
||
| 54 | public function get(string $path, array $options = []) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $path |
||
| 61 | * @param array $options |
||
| 62 | * @return null |
||
| 63 | */ |
||
| 64 | public function delete(string $path, array $options = []) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param $expectedResponse |
||
| 71 | */ |
||
| 72 | public function setResponse($expectedResponse): void |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return mixed |
||
| 79 | */ |
||
| 80 | private function getSetResponse() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return mixed |
||
| 87 | */ |
||
| 88 | private function getGetResponse() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return mixed |
||
| 95 | */ |
||
| 96 | private function getDeleteResponse() |
||
| 100 | } |
||
| 101 |