protected function injectVariableToArguments($variable, &$arguments, $position = -1) {
        $argsCount = count($arguments);
        //Negative value handle (from end)
        if ($position < 0) {
            $position = $argsCount - $position;
        }
        if (!isset($arguments[$position]) && $position >= 0 && $position <= $argsCount) {
           $arguments[$position] = $variable;
        }
    }
protected function injectVariableToArguments($variable, &$arguments, $position = -1) {
        $argsCount = count($arguments);
        //Negative value handle (from end)
        if ($position < 0) {
            $position = $argsCount - $position;
        }
        if (!isset($arguments[$position]) && $position >= 0 && $position <= $argsCount) {
           $arguments[$position] = $variable;
        }
    }
protected function injectVariableToArguments ( $ variable , & $ arguments , $ position = - 1 ) { $ argsCount = count ( $ arguments ) ; //Negative value handle (from end) if ( $ position < 0 ) { $ position = $ argsCount - $ position ; } if ( ! isset ( $ arguments [ $ position ] ) && $ position >= 0 && $ position <= $ argsCount ) { $ arguments [ $ position ] = $ variable ; } }
Inject variable to arguments array at given position
@param mixed $variable
@param array $arguments
@param int $position
Inject variable to arguments array at given position