Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class PublicAccessor implements PropertyAccessorInterface |
||
11 | { |
||
12 | /** |
||
13 | * Property name |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | private $property; |
||
18 | |||
19 | /** |
||
20 | * Constructor |
||
21 | * |
||
22 | * @param string $class |
||
23 | * @param string $property |
||
24 | */ |
||
25 | 72 | public function __construct(string $class, string $property) |
|
26 | { |
||
27 | 72 | $this->property = $property; |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 26 | public function write($object, $value) |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 48 | public function read($object) |
|
46 |