Lines Matching refs:collection_key
12 protected $collection_key = 'items'; variable in Google\\Collection
18 if (isset($this->{$this->collection_key})
19 && is_array($this->{$this->collection_key})) {
20 reset($this->{$this->collection_key});
29 if (is_array($this->{$this->collection_key})) {
30 return current($this->{$this->collection_key});
38 if (isset($this->{$this->collection_key})
39 && is_array($this->{$this->collection_key})) {
40 return key($this->{$this->collection_key});
48 return next($this->{$this->collection_key});
63 if (!isset($this->{$this->collection_key})) {
66 return count($this->{$this->collection_key});
75 return isset($this->{$this->collection_key}[$offset]);
85 return $this->{$this->collection_key}[$offset];
94 $this->{$this->collection_key}[$offset] = $value;
103 unset($this->{$this->collection_key}[$offset]);
108 $keyType = $this->keyType($this->collection_key);
109 if ($keyType && !is_object($this->{$this->collection_key}[$offset])) {
110 $this->{$this->collection_key}[$offset] =
111 new $keyType($this->{$this->collection_key}[$offset]);