/** * {@inheritdoc} * * Returns a default countable interface if the countable is set. * * @return TemplateInterface */ public function getTemplate() { if (isset($this->countable)) { return $this->getDefaultCountableTemplate(); } return parent::getTemplate(); }
/** * {@inheritdoc} * * @param $actual * @return Match */ public function match($actual) { $match = parent::match($actual); return $match->setActual($this->type); }