function register ($nameOrItems, $item = null)
  {
    if (is_array ($nameOrItems))
      $this->items = array_merge ($this->items, $nameOrItems);
    else $this->items[$nameOrItems] = $item;
    return $this;
  }
function register ($nameOrItems, $item = null)
  {
    if (is_array ($nameOrItems))
      $this->items = array_merge ($this->items, $nameOrItems);
    else $this->items[$nameOrItems] = $item;
    return $this;
  }
function register ( $ nameOrItems , $ item = null ) { if ( is_array ( $ nameOrItems ) ) $ this -> items = array_merge ( $ this -> items , $ nameOrItems ) ; else $ this -> items [ $ nameOrItems ] = $ item ; return $ this ; }
Registers one or more items under the specified names.

@param string|object[] $nameOrItems The name to associated with the item, or an associative array of names to
items.
@param object|null     $item        [optional] The item instance or NULL if the first argument is an array.
@return $this
Registers one or more items under the specified names .