1 | <?php |
||
18 | class FirebaseModel |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | public static $nodeName = ''; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public $key; |
||
30 | |||
31 | /** |
||
32 | * @var JCFirebase |
||
33 | */ |
||
34 | public $firebase; |
||
35 | |||
36 | /** |
||
37 | * FirebaseModel constructor. |
||
38 | * |
||
39 | * @param \JCFirebase\JCFirebase $firebase |
||
40 | */ |
||
41 | 5 | public function __construct(JCFirebase $firebase = null) |
|
45 | |||
46 | 5 | public static function getNodeName() |
|
50 | |||
51 | 1 | public static function setNodeName($nodeName) |
|
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | 5 | public function getData() |
|
67 | |||
68 | /** |
||
69 | * @return bool |
||
70 | */ |
||
71 | 3 | public function create() |
|
81 | |||
82 | |||
83 | /** |
||
84 | * @return bool |
||
85 | */ |
||
86 | 4 | public function save() |
|
100 | |||
101 | /** |
||
102 | * @return bool |
||
103 | */ |
||
104 | 1 | public function delete() |
|
115 | |||
116 | /** |
||
117 | * @param $key |
||
118 | * @param JCFirebase $firebase |
||
119 | * |
||
120 | * @return object |
||
121 | */ |
||
122 | 5 | public static function findByKey($key, JCFirebase $firebase) |
|
134 | |||
135 | /** |
||
136 | * @param JCFirebase $firebase |
||
137 | * |
||
138 | * @return array(FirebaseModel) |
||
|
|||
139 | */ |
||
140 | 1 | public static function findAll(JCFirebase $firebase) |
|
157 | |||
158 | 4 | protected static function map($object, $instance) |
|
163 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.