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

InOutControlBuilderTrait::return()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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