| 1 | <?php |
||
| 22 | final class ProcessorsRegistry implements ProcessorsRegistryInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var ProcessorInterface[] |
||
| 26 | */ |
||
| 27 | private $processors; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * ProcessorsRegistry constructor. |
||
| 31 | * |
||
| 32 | * @param ProcessorInterface[] $processors |
||
| 33 | */ |
||
| 34 | 14 | public function __construct(array $processors = array()) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 1 | public function add(ProcessorInterface $processor) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 1 | public function all() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | 1 | public function getIterator() |
|
| 66 | } |
||
| 67 |