src/Form/Model/Attribute/Accessor/Type.php
public function getTypes(): array
    {
        static $types;

        if (null === $types) {
            $types = [];
            $class = new ReflectionClass($this);

            foreach ($class->getConstants() as $constant => $value) {
                if ('TYPE_' === substr($constant, 0, 5)) {
                    $types[] = $value;
                }
            }
        }

        return $types;
    }
public function getTypes(): array
    {
        static $types;

        if (null === $types) {
            $types = [];
            $class = new ReflectionClass($this);

            foreach ($class->getConstants() as $constant => $value) {
                if ('TYPE_' === substr($constant, 0, 5)) {
                    $types[] = $value;
                }
            }
        }

        return $types;
    }
Get types

@return array