Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/friendsofcake/bootstrap-ui/src/View/Helper/Types/Type.php
<?php

namespace BootstrapUI\View\Helper\Types;

use
ReflectionClass;

/**
 * Type
 */
abstract class Type implements TypeInterface
{
   
/**
     * Get all constant values of a class
     *
     * @return array|mixed
     * @throws \ReflectionException
     */
   
public static function values()
    {
       
$called = get_called_class();
       
$reflection = new ReflectionClass($called);
       
$elements = $reflection->getConstants();

        return
array_values($elements);
    }
}