Array2ObjectContext   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getWriter() 0 4 1
A setWriter() 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;
12
13
use Rafrsr\LibArray2Object\Traits\MatcherAwareTrait;
14
use Rafrsr\LibArray2Object\Writer\PropertyWriterInterface;
15
16
class Array2ObjectContext extends AbstractContext
17
{
18
    use MatcherAwareTrait;
19
20
    /**
21
     * @var PropertyWriterInterface
22
     */
23
    private $writer;
24
25
    /**
26
     * @return PropertyWriterInterface
27
     */
28
    public function getWriter()
29
    {
30
        return $this->writer;
31
    }
32
33
    /**
34
     * @param PropertyWriterInterface $writer
35
     *
36
     * @return $this
37
     */
38
    public function setWriter($writer)
39
    {
40
        $this->writer = $writer;
41
42
        return $this;
43
    }
44
}
45