Layton/Services/DependentService.php
protected function getReflectionParameters($reflection, $inherentNumber)
    {
        $reflectionParameters = $reflection->getParameters();
        return array_slice($reflectionParameters, 0, count($reflectionParameters) - $inherentNumber);
    }
protected function getReflectionParameters($reflection, $inherentNumber)
    {
        $reflectionParameters = $reflection->getParameters();
        return array_slice($reflectionParameters, 0, count($reflectionParameters) - $inherentNumber);
    }
protected function getReflectionParameters ( $ reflection , $ inherentNumber ) { $ reflectionParameters = $ reflection -> getParameters ( ) ; return array_slice ( $ reflectionParameters , 0 , count ( $ reflectionParameters ) - $ inherentNumber ) ; }
get instances of params from Reflection

@param \Reflector $reflection
@param num $inherentNumber

@return ReflectionParameter[]
get instances of params from Reflection