| 1 | <?php |
||
| 9 | final class DecoratedStrategy implements StrategyInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var StrategyInterface |
||
| 13 | */ |
||
| 14 | private $strategy; |
||
| 15 | /** |
||
| 16 | * @var DecoratorInterface[] |
||
| 17 | */ |
||
| 18 | private $decorators; |
||
| 19 | |||
| 20 | 2 | public function __construct(StrategyInterface $strategy, DecoratorInterface ...$decorators) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | * |
||
| 29 | * Decorate extraction |
||
| 30 | */ |
||
| 31 | 2 | public function extract($value) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc |
||
| 42 | */ |
||
| 43 | public function hydrate($value) |
||
| 47 | } |
||
| 48 |