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

Collection::getEntriesClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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