Completed
Push — master ( 282925...bb1873 )
by Rafael
03:01
created

MatcherAwareTrait::setMatcher()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/**
4
 * LICENSE: This file is subject to the terms and conditions defined in
5
 * file 'LICENSE', which is part of this source code package.
6
 *
7
 * @copyright 2016 Copyright(c) - All rights reserved.
8
 */
9
10
namespace Rafrsr\LibArray2Object;
11
12
use Rafrsr\LibArray2Object\Matcher\PropertyMatcherInterface;
13
14
/**
15
 * MatcherAwareTrait
16
 */
17
trait MatcherAwareTrait
18
{
19
    /**
20
     * @var PropertyMatcherInterface
21
     */
22
    private $matcher;
23
24
    /**
25
     * @return PropertyMatcherInterface
26
     */
27
    public function getMatcher()
28
    {
29
        return $this->matcher;
30
    }
31
32
    /**
33
     * @param PropertyMatcherInterface $matcher
34
     *
35
     * @return $this
36
     */
37
    public function setMatcher(PropertyMatcherInterface $matcher)
38
    {
39
        $this->matcher = $matcher;
40
41
        return $this;
42
    }
43
}