src/ParameterParser/ParameterParser.php
private function getParameterClosure($parameter)
    {
        $parameterClosure = null;

        foreach (array_keys($this->parameterCluster->prefixes) as $prefix) {
            if (substr($parameter, 0, strlen($prefix)) == $prefix) {
                @$parameterClosure = $this->parameterCluster->prefixes[$prefix][
                    substr(
                        $parameter,
                        strlen($prefix),
                        strlen($parameter) - strlen($prefix)
                    )
                ];
            }
        }

        return $parameterClosure;
    }
private function getParameterClosure($parameter)
    {
        $parameterClosure = null;

        foreach (array_keys($this->parameterCluster->prefixes) as $prefix) {
            if (substr($parameter, 0, strlen($prefix)) == $prefix) {
                @$parameterClosure = $this->parameterCluster->prefixes[$prefix][
                    substr(
                        $parameter,
                        strlen($prefix),
                        strlen($parameter) - strlen($prefix)
                    )
                ];
            }
        }

        return $parameterClosure;
    }
Get the ParameterClosure object associated with a parameter.
If no ParameterClosure is found for the parameter, return null.

@param  string $parameter

@return ParameterClosure