/** * Replace an old item with key $key with $item * @param string|X_Page_Item_StatusLink $key * @param X_Page_Item_StatusLink $item * @return X_Page_ItemList_StatusLink */ public function replace($key, X_Page_Item $item) { if (!$item instanceof X_Page_Item_StatusLink) { return $this; } return parent::replace($key, $item); }