Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class ReflectionLocalizedSetterMethod implements SetterInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var ReflectionMethod |
||
14 | */ |
||
15 | private $method; |
||
16 | |||
17 | /** |
||
18 | * @var callable |
||
19 | */ |
||
20 | private $conversionFn; |
||
21 | |||
22 | /** |
||
23 | * @var LocalizationAwareInterface |
||
24 | */ |
||
25 | private $localizationAware; |
||
26 | |||
27 | public function __construct(ReflectionMethod $method, LocalizationAwareInterface $localizationAware, callable $conversionFn) |
||
28 | { |
||
29 | $this->method = $method; |
||
30 | $this->localizationAware = $localizationAware; |
||
31 | $this->conversionFn = $conversionFn; |
||
32 | } |
||
33 | |||
34 | public function getName(): string |
||
37 | } |
||
38 | |||
39 | public function setValue($object, $value) |
||
42 | } |
||
43 | |||
44 | public function getPriority(): int |
||
47 | } |
||
48 | |||
49 | public function toType(): ?Type |
||
54 |