| 1 | <?php |
||
| 5 | abstract class Converter |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var Handler[] |
||
| 9 | */ |
||
| 10 | protected $handlers; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Construct from an optional array of handlers. |
||
| 14 | * |
||
| 15 | * @param Handler[] $handlers |
||
| 16 | */ |
||
| 17 | public function __construct(array $handlers = array()) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Adds handler. |
||
| 24 | * |
||
| 25 | * @param Handler $handler |
||
| 26 | */ |
||
| 27 | public function addHandler(Handler $handler) |
||
| 31 | } |
||
| 32 |