parser = $parser; $this->config = $config; $this->setUp(); } /** * Plugin's setup * * @return void */ protected function setUp() { } /** * @param string $text * @param array $matches If the config array has a "regexp" key, the corresponding matches are * passed as second parameter. Otherwise, an empty array is passed * @return void */ abstract public function parse($text, array $matches); }