Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function onFinish(ErrorAggregatorInterface $aggregator)
 {
     parent::onFinish($aggregator);
     if ($this->hasBeenInvoked === false) {
         $aggregator->add($this->createError($this->getParameterName(), null, MessageCodes::REQUIRED));
     }
 }
Beispiel #2
0
 /**
  * @inheritdoc
  */
 public function onFinish(ErrorAggregatorInterface $aggregator)
 {
     parent::onFinish($aggregator);
     if ($this->errorAdded === false) {
         $aggregator->add($this->createError($this->getParameterName(), null, $this->messageCode));
     }
 }