original_string: protected function validateZoneCountryState()
      {
          $field = 'zone_id';
          $value = $this->getSubmitted($field);
  
          if (empty($value)) {
              return null;
          }
  
          $label = $this->translation->text('Zone');
  
          if (!is_numeric($value)) {
              $this->setErrorNumeric($field, $label);
              return false;
          }
  
          $zone = $this->zone->get($value);
  
          if (empty($zone)) {
              $this->setErrorUnavailable($field, $label);
              return false;
          }
  
          return true;
      }
code: protected function validateZoneCountryState()
      {
          $field = 'zone_id';
          $value = $this->getSubmitted($field);
  
          if (empty($value)) {
              return null;
          }
  
          $label = $this->translation->text('Zone');
  
          if (!is_numeric($value)) {
              $this->setErrorNumeric($field, $label);
              return false;
          }
  
          $zone = $this->zone->get($value);
  
          if (empty($zone)) {
              $this->setErrorUnavailable($field, $label);
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateZoneCountryState ( ) { $ field = 'zone_id' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( empty ( $ value ) ) { return null ; } $ label = $ this -> translation -> text ( 'Zone' ) ; if ( ! is_numeric ( $ value ) ) { $ this -> setErrorNumeric ( $ field , $ label ) ; return false ; } $ zone = $ this -> zone -> get ( $ value ) ; if ( empty ( $ zone ) ) { $ this -> setErrorUnavailable ( $ field , $ label ) ; return false ; } return true ; }
docstring: Validates a zone ID
  @return boolean|null
docstring_tokens: Validates a zone ID