Пример #1
0
 /**
  * {@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();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  *
  * @param $actual
  * @return Match
  */
 public function match($actual)
 {
     $match = parent::match($actual);
     return $match->setActual($this->type);
 }