parser = $parser; $this->config = $config; $this->setUp(); } protected function setUp() { } abstract public function parse($text, array $matches); }