private function getAutoGenerateModes()
    {
        $constPrefix = 'AUTOGENERATE_';
        $prefixLen   = strlen($constPrefix);
        $refClass    = new ReflectionClass('Doctrine\Common\Proxy\AbstractProxyFactory');
        $constsArray = $refClass->getConstants();
        $namesArray  = [];
        $valuesArray = [];

        foreach ($constsArray as $key => $value) {
            if (strpos($key, $constPrefix) !== 0) {
                continue;
            }

            $namesArray[]  = substr($key, $prefixLen);
            $valuesArray[] = (int) $value;
        }

        return [
            'names' => $namesArray,
            'values' => $valuesArray,
        ];
    }
private function getAutoGenerateModes()
    {
        $constPrefix = 'AUTOGENERATE_';
        $prefixLen   = strlen($constPrefix);
        $refClass    = new ReflectionClass('Doctrine\Common\Proxy\AbstractProxyFactory');
        $constsArray = $refClass->getConstants();
        $namesArray  = [];
        $valuesArray = [];

        foreach ($constsArray as $key => $value) {
            if (strpos($key, $constPrefix) !== 0) {
                continue;
            }

            $namesArray[]  = substr($key, $prefixLen);
            $valuesArray[] = (int) $value;
        }

        return [
            'names' => $namesArray,
            'values' => $valuesArray,
        ];
    }
private function getAutoGenerateModes ( ) { $ constPrefix = 'AUTOGENERATE_' ; $ prefixLen = strlen ( $ constPrefix ) ; $ refClass = new ReflectionClass ( 'Doctrine\Common\Proxy\AbstractProxyFactory' ) ; $ constsArray = $ refClass -> getConstants ( ) ; $ namesArray = [ ] ; $ valuesArray = [ ] ; foreach ( $ constsArray as $ key => $ value ) { if ( strpos ( $ key , $ constPrefix ) !== 0 ) { continue ; } $ namesArray [ ] = substr ( $ key , $ prefixLen ) ; $ valuesArray [ ] = ( int ) $ value ; } return [ 'names' => $ namesArray , 'values' => $ valuesArray , ] ; }
Find proxy auto generate modes for their names and int values

@return array
Find proxy auto generate modes for their names and int values