Lines 100.00% 26 / 26
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% 26 / 26 100.00% 1 / 1 1 100.00% 1 / 1
 getDefaults 100.00% 26 / 26 100.00% 1 / 1 1
1<?php
2
3namespace BO\Zmsentities;
4
5class 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                'confirmedWithMultipleServices' => 0,
35                'lastInsert' => 0,
36            ),
37            'mail' => array (
38                'queueCount' => 0,
39                'oldestSeconds' => 0,
40                'newestSeconds' => 0,
41            )
42        ];
43    }
44}