original_string: public function errors() : array
      {
          $errors = [];
          foreach ($this->tests as $error => $test) {
              if (!$test($this->getValue())) {
                  $errors[] = $error;
              }
          }
          return $errors;
      }
code: public function errors() : array
      {
          $errors = [];
          foreach ($this->tests as $error => $test) {
              if (!$test($this->getValue())) {
                  $errors[] = $error;
              }
          }
          return $errors;
      }
code_tokens: public function errors ( ) : array { $ errors = [ ] ; foreach ( $ this -> tests as $ error => $ test ) { if ( ! $ test ( $ this -> getValue ( ) ) ) { $ errors [ ] = $ error ; } } return $ errors ; }
docstring: Get array of errors for element.
  
  @return array
docstring_tokens: Get array of errors for element .