MatcherAwareTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMatcher() 0 4 1
A setMatcher() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the rafrsr/lib-array2object package.
5
 *
6
 * (c) Rafael SR <https://github.com/rafrsr>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
namespace Rafrsr\LibArray2Object\Traits;
12
13
use Rafrsr\LibArray2Object\Matcher\PropertyMatcherInterface;
14
15
/**
16
 * MatcherAwareTrait.
17
 */
18
trait MatcherAwareTrait
19
{
20
    /**
21
     * @var PropertyMatcherInterface
22
     */
23
    private $matcher;
24
25
    /**
26
     * @return PropertyMatcherInterface
27
     */
28
    public function getMatcher()
29
    {
30
        return $this->matcher;
31
    }
32
33
    /**
34
     * @param PropertyMatcherInterface $matcher
35
     *
36
     * @return $this
37
     */
38
    public function setMatcher(PropertyMatcherInterface $matcher)
39
    {
40
        $this->matcher = $matcher;
41
42
        return $this;
43
    }
44
}
45