private function getConstantsByName($name)
    {
        $reflection = new ReflectionClass(__CLASS__);

        $constants = $reflection->getConstants();

        $result = [];

        foreach ($constants as $key => $constant) {
            if (false !== stripos($key, $name)) {
                $result[$key] = $constant;
            }
        }

        return $result;
    }
private function getConstantsByName($name)
    {
        $reflection = new ReflectionClass(__CLASS__);

        $constants = $reflection->getConstants();

        $result = [];

        foreach ($constants as $key => $constant) {
            if (false !== stripos($key, $name)) {
                $result[$key] = $constant;
            }
        }

        return $result;
    }
@param string $name

@return array