| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class Getter implements TransformerInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $name; |
||
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * Getter constructor. |
||
| 28 | * |
||
| 29 | * @param string $name The method name |
||
| 30 | */ |
||
| 31 | 7 | public function __construct(string $name) |
|
| 34 | 7 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | 7 | public function __invoke($element, $key = null) |
|
| 44 |