Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ReflectionMethodSetter implements SetterInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var ReflectionMethod |
||
13 | */ |
||
14 | private $method; |
||
15 | |||
16 | public function __construct(ReflectionMethod $method) |
||
17 | { |
||
18 | $this->method = $method; |
||
19 | } |
||
20 | |||
21 | public function setValue($object, $newValue) |
||
22 | { |
||
23 | return $this->method->invoke($object, $newValue); |
||
24 | } |
||
25 | |||
26 | public function getName(): string |
||
29 | } |
||
30 | |||
31 | public function getPriority(): int |
||
32 | { |
||
33 | return 3; |
||
34 | } |
||
35 | |||
36 | public function toType(): ?Type |
||
39 | } |
||
40 | } |
||
41 |