protected function setParam($type, $index, $value, $override = false) {
        if ($override) {
            $this->{$type}[$index] = $value;
        } else if (!isset($this->{$type}[$index])) {
            $this->{$type}[$index] = $value;
        }

        return $this;
    }
protected function setParam($type, $index, $value, $override = false) {
        if ($override) {
            $this->{$type}[$index] = $value;
        } else if (!isset($this->{$type}[$index])) {
            $this->{$type}[$index] = $value;
        }

        return $this;
    }
protected function setParam ( $ type , $ index , $ value , $ override = false ) { if ( $ override ) { $ this -> { $ type } [ $ index ] = $ value ; } else if ( ! isset ( $ this -> { $ type } [ $ index ] ) ) { $ this -> { $ type } [ $ index ] = $ value ; } return $ this ; }
A helper used to set aliases, assets and instances.

Not pretty! But hey?

@param string $type
@param string $index
@param mixed $value
@param bool override override
A helper used to set aliases assets and instances .