Completed
Push — master ( cb2e11...ed783e )
by Dmitry
10:26
created

Collection   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getEntriesClass() 0 4 1
A of() 0 6 1
1
<?php
2
3
namespace hiapi\endpoints\Module\InOutControl\VO;
4
5
class Collection
6
{
7
    /**
8
     * @var string
9
     */
10
    private $entriesClass;
11
12
    private function __construct()
13
    {
14
    }
15
16
    /**
17
     * @return string
18
     */
19
    public function getEntriesClass(): string
20
    {
21
        return $this->entriesClass;
22
    }
23
24
    public static function of(string $className): self
25
    {
26
        $self = new self();
27
        $self->entriesClass= $className;
28
        return $self;
29
    }
30
}
31