| 1 | <?php |
||
| 17 | abstract class Chain |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $plugins = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $titles = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param PluginInterface $plugin |
||
| 31 | */ |
||
| 32 | 8 | public function addPlugin(PluginInterface $plugin) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $name |
||
| 42 | * |
||
| 43 | * @return PluginInterface|null |
||
| 44 | */ |
||
| 45 | 4 | public function getPlugin($name) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | 1 | public function hasPlugins() |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @return PluginInterface[] |
||
| 64 | */ |
||
| 65 | 1 | public function getPlugins() |
|
| 69 | |||
| 70 | /** |
||
| 71 | * @return string[] |
||
| 72 | */ |
||
| 73 | 1 | public function getNames() |
|
| 77 | |||
| 78 | /** |
||
| 79 | * @return string[] |
||
| 80 | */ |
||
| 81 | 1 | public function getTitles() |
|
| 85 | } |
||
| 86 |