code: public function toArray()
      {
          return [
              'name'               => $this->name,
              'type'               => $this->type->getTypeValue(),
              'rule'               => $this->rule->getName(),
              'required'           => $this->required,
              'min_length'         => $this->minLength,
              'max_length'         => $this->maxLength,
              'pattern'            => $this->pattern,
              'format'             => $this->format->getValue(),
              'min'                => $this->min,
              'max'                => $this->max,
              'precision'          => $this->precision,
              'scale'              => $this->scale,
              'default'            => $this->getDefault(),
              'use_type_default'   => $this->useTypeDefault,
              'class_name'         => $this->className,
              'any_of_class_names' => $this->anyOfClassNames,
              'has_assertion'      => null !== $this->assertion,
              'overridable'        => $this->overridable,
          ];
      }
docs: {@inheritdoc}