/** * Constructs a OrderedListAsLinkedList_Cursor * with the given list, element and key. * * @param object OrderedListAsLinkedList $list A list. * @param mixed $element A list element. * @param mixed $key The key for the given element. */ public function __construct(OrderedListAsLinkedList $list, $element = NULL, $key = 0) { parent::__construct(); $this->list = $list; $this->element = $element; $this->key = $key; }
/** * Constructs a OrderedListAsArray_Cursor * with the given list and offset. * * @param object OrderedListAsArray $list A list. * @param integer $offset The offset. */ public function __construct(OrderedListAsArray $list, $offset = 0) { parent::__construct(); $this->list = $list; $this->offset = $offset; }