original_string: protected function getDefaultErrorMessages()
      {
          $messages = [
              'message' => '{attribute} is invalid.',
              'messageDNS' => 'DNS record corresponding to {attribute} not found.',
              'messageLabelNumberMin' =>
                  '{attribute} should consist of at least {labelNumberMin, number} labels separated by ' .
                  '{labelNumberMin, plural, =2{dot} other{dots}}.',
              'messageLabelTooShort' => 'Each label of {attribute} should contain at least 1 character.',
              'messageNotString' => '{attribute} must be a string.',
              'messageTooShort' => '{attribute} should contain at least 1 character.',
          ];
          if ($this->enableIDN) {
              $messages['messageLabelStartEnd'] =
                  'Each label of {attribute} should start and end with letter or number.' .
                  ' The rightmost label of {attribute} should start with letter.';
              $messages['messageLabelTooLong'] = 'Label of {attribute} is too long.';
              $messages['messageTooLong'] = '{attribute} is too long.';
              if ($this->allowUnderscore) {
                  $messages['messageInvalidCharacter'] =
                      'Each label of {attribute} can consist of only letters, numbers, hyphens and underscores.';
              } else {
                  $messages['messageInvalidCharacter'] =
                      'Each label of {attribute} can consist of only letters, numbers and hyphens.';
              }
          } else {
              $messages['messageLabelStartEnd'] =
                  'Each label of {attribute} should start and end with latin letter or number.' .
                  ' The rightmost label of {attribute} should start with latin letter.';
              $messages['messageLabelTooLong'] = 'Each label of {attribute} should contain at most 63 characters.';
              $messages['messageTooLong'] = '{attribute} should contain at most 253 characters.';
              if ($this->allowUnderscore) {
                  $messages['messageInvalidCharacter'] =
                      'Each label of {attribute} can consist of only latin letters, numbers, hyphens and underscores.';
              } else {
                  $messages['messageInvalidCharacter'] =
                      'Each label of {attribute} can consist of only latin letters, numbers and hyphens.';
              }
          }
          return $messages;
      }
code: protected function getDefaultErrorMessages()
      {
          $messages = [
              'message' => '{attribute} is invalid.',
              'messageDNS' => 'DNS record corresponding to {attribute} not found.',
              'messageLabelNumberMin' =>
                  '{attribute} should consist of at least {labelNumberMin, number} labels separated by ' .
                  '{labelNumberMin, plural, =2{dot} other{dots}}.',
              'messageLabelTooShort' => 'Each label of {attribute} should contain at least 1 character.',
              'messageNotString' => '{attribute} must be a string.',
              'messageTooShort' => '{attribute} should contain at least 1 character.',
          ];
          if ($this->enableIDN) {
              $messages['messageLabelStartEnd'] =
                  'Each label of {attribute} should start and end with letter or number.' .
                  ' The rightmost label of {attribute} should start with letter.';
              $messages['messageLabelTooLong'] = 'Label of {attribute} is too long.';
              $messages['messageTooLong'] = '{attribute} is too long.';
              if ($this->allowUnderscore) {
                  $messages['messageInvalidCharacter'] =
                      'Each label of {attribute} can consist of only letters, numbers, hyphens and underscores.';
              } else {
                  $messages['messageInvalidCharacter'] =
                      'Each label of {attribute} can consist of only letters, numbers and hyphens.';
              }
          } else {
              $messages['messageLabelStartEnd'] =
                  'Each label of {attribute} should start and end with latin letter or number.' .
                  ' The rightmost label of {attribute} should start with latin letter.';
              $messages['messageLabelTooLong'] = 'Each label of {attribute} should contain at most 63 characters.';
              $messages['messageTooLong'] = '{attribute} should contain at most 253 characters.';
              if ($this->allowUnderscore) {
                  $messages['messageInvalidCharacter'] =
                      'Each label of {attribute} can consist of only latin letters, numbers, hyphens and underscores.';
              } else {
                  $messages['messageInvalidCharacter'] =
                      'Each label of {attribute} can consist of only latin letters, numbers and hyphens.';
              }
          }
          return $messages;
      }
code_tokens: protected function getDefaultErrorMessages ( ) { $ messages = [ 'message' => '{attribute} is invalid.' , 'messageDNS' => 'DNS record corresponding to {attribute} not found.' , 'messageLabelNumberMin' => '{attribute} should consist of at least {labelNumberMin, number} labels separated by ' . '{labelNumberMin, plural, =2{dot} other{dots}}.' , 'messageLabelTooShort' => 'Each label of {attribute} should contain at least 1 character.' , 'messageNotString' => '{attribute} must be a string.' , 'messageTooShort' => '{attribute} should contain at least 1 character.' , ] ; if ( $ this -> enableIDN ) { $ messages [ 'messageLabelStartEnd' ] = 'Each label of {attribute} should start and end with letter or number.' . ' The rightmost label of {attribute} should start with letter.' ; $ messages [ 'messageLabelTooLong' ] = 'Label of {attribute} is too long.' ; $ messages [ 'messageTooLong' ] = '{attribute} is too long.' ; if ( $ this -> allowUnderscore ) { $ messages [ 'messageInvalidCharacter' ] = 'Each label of {attribute} can consist of only letters, numbers, hyphens and underscores.' ; } else { $ messages [ 'messageInvalidCharacter' ] = 'Each label of {attribute} can consist of only letters, numbers and hyphens.' ; } } else { $ messages [ 'messageLabelStartEnd' ] = 'Each label of {attribute} should start and end with latin letter or number.' . ' The rightmost label of {attribute} should start with latin letter.' ; $ messages [ 'messageLabelTooLong' ] = 'Each label of {attribute} should contain at most 63 characters.' ; $ messages [ 'messageTooLong' ] = '{attribute} should contain at most 253 characters.' ; if ( $ this -> allowUnderscore ) { $ messages [ 'messageInvalidCharacter' ] = 'Each label of {attribute} can consist of only latin letters, numbers, hyphens and underscores.' ; } else { $ messages [ 'messageInvalidCharacter' ] = 'Each label of {attribute} can consist of only latin letters, numbers and hyphens.' ; } } return $ messages ; }
docstring: Get default error messages.
  @return array default error messages.
docstring_tokens: Get default error messages .