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