CommandStatuses   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addCommandStatus() 0 4 1
A fullStatuses() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\KsqlClient\Entity;
5
6
/**
7
 * Class CommandStatuses
8
 */
9
final class CommandStatuses implements EntityInterface
10
{
11
    /** @var CommandStatus[] */
12
    private $statuses = [];
13
14
    /**
15
     * @param CommandStatus $status
16
     */
17
    public function addCommandStatus(CommandStatus $status): void
18
    {
19
        $this->statuses[] = $status;
20
    }
21
22
    /**
23
     * @return CommandStatus[]
24
     */
25
    public function fullStatuses(): array
26
    {
27
        return $this->statuses;
28
    }
29
}
30