Ejemplo n.º 1
0
 /**
  * @internal
  * @return bool
  */
 public function validate() : bool
 {
     $errorStorage = $this->getNode()->getZone()->getErrorsStore();
     if (!Ip6Validator::validate($this->getAddress())) {
         $errorStorage->add(ValidationError::makeRecordError($this, eErrorCode::WRONG_IP_V6(), 'address'));
     }
     /** @noinspection PhpInternalEntityUsedInspection */
     return parent::validate();
 }