| 1 | <?php |
||
| 19 | class Strategy implements StrategyInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var \Closure |
||
| 23 | */ |
||
| 24 | private $callback; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Strategy constructor. |
||
| 28 | * @param \Closure $callback |
||
| 29 | */ |
||
| 30 | public function __construct(\Closure $callback) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param TypeNameInterface $name |
||
| 37 | * @param iterable|ArgumentInterface[] $arguments |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function reduce(TypeNameInterface $name, iterable $arguments): string |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $name |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | protected function verified(string $name): string |
||
| 58 | } |
||
| 59 |