Passed
Push — master ( 0db761...d4eca6 )
by Phillip
02:13
created

SetLocatorImplementation::locator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace PHPassword\Locator;
4
5
6
trait SetLocatorImplementation
7
{
8
    /**
9
     * @var Locator
10
     */
11
    private $locator;
12
13
    /**
14
     * @param Locator $locator
15
     */
16 11
    public function setLocator(Locator $locator)
17
    {
18 11
        $this->locator = $locator;
19 11
    }
20
21
    /**
22
     * @return Locator
23
     */
24
    protected function locator(): Locator
25
    {
26
        return $this->locator;
27
    }
28
}