Completed
Push — master ( 17bcf1...528abf )
by Dmitry
10:53
created

InOutControlBuilderTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A take() 0 6 1
A return() 0 6 1
1
<?php
2
3
4
namespace hiapi\endpoints\Module\InOutControl;
5
6
/**
7
 * Trait InOutControlBuilderTrait
8
 *
9
 * @author Dmytro Naumenko <[email protected]>
10
 */
11
trait InOutControlBuilderTrait
12
{
13
    /**
14
     * @psalm-var class-string
15
     */
16
    protected $take;
17
18
    /**
19
     * @psalm-var class-string
20
     */
21
    protected $return;
22
23
    public function take(string $className)
24
    {
25
        $this->take = $className;
26
27
        return $this;
28
    }
29
30
    public function return(string $className)
31
    {
32
        $this->return = $className;
33
34
        return $this;
35
    }
36
}
37