| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Stats |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Connections |
||
| 15 | */ |
||
| 16 | private $c = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Stats constructor. |
||
| 20 | * @param Connections $c |
||
| 21 | */ |
||
| 22 | public function __construct(Connections $c) |
||
| 23 | { |
||
| 24 | $this->c = $c; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | */ |
||
| 29 | public function untrack() : void |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | public function cIdling() : int |
||
| 38 | { |
||
| 39 | return $this->c->cIdleCount(); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function cBusying() : int |
||
| 46 | { |
||
| 47 | return $this->c->cBusyCount(); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return int |
||
| 52 | */ |
||
| 53 | public function sPending() : int |
||
| 56 | } |
||
| 57 | } |
||
| 58 |