/** * @param integer|string index of the cookie in the collection or the cookie's name * @return THttpCookie the cookie found */ public function itemAt($index) { if (is_integer($index)) { return parent::itemAt($index); } else { return $this->findCookieByName($index); } }