Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
26 / 26 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Status | |
100.00% |
26 / 26 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| getDefaults | |
100.00% |
26 / 26 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BO\Zmsentities; |
| 4 | |
| 5 | class Status extends Schema\Entity |
| 6 | { |
| 7 | public const PRIMARY = 'version'; |
| 8 | public static $schema = "status.json"; |
| 9 | |
| 10 | public function getDefaults() |
| 11 | { |
| 12 | return [ |
| 13 | 'database' => array ( |
| 14 | 'nodeConnections' => 0.0, |
| 15 | 'clusterStatus' => 'OFF', |
| 16 | 'logbin' => 'OFF', |
| 17 | ), |
| 18 | 'processes' => array ( |
| 19 | 'blocked' => 0, |
| 20 | 'confirmed' => 0, |
| 21 | 'preconfirmed' => 0, |
| 22 | 'deleted' => 0, |
| 23 | 'missed' => 0, |
| 24 | 'reserved' => 0, |
| 25 | 'lastInsert' => 0, |
| 26 | ), |
| 27 | 'mail' => array ( |
| 28 | 'queueCount' => 0, |
| 29 | 'oldestSeconds' => 0, |
| 30 | 'newestSeconds' => 0, |
| 31 | ), |
| 32 | 'notification' => array ( |
| 33 | 'queueCount' => 0, |
| 34 | 'oldestSeconds' => 0, |
| 35 | 'newestSeconds' => 0, |
| 36 | ), |
| 37 | ]; |
| 38 | } |
| 39 | } |