Esempio n. 1
0
 /**
  * @internal
  * @return bool
  */
 public function validate() : bool
 {
     $errorStorage = $this->getNode()->getZone()->getErrorsStore();
     if (!TtlValidator::validate($this->getTtl())) {
         $errorStorage->add(ValidationError::makeRecordError($this, eErrorCode::WRONG_TTL(), 'ttl'));
     }
     return !$errorStorage->isHasErrors();
 }