updated core to 1.7.15
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Grav\Framework\Collection
|
||||
*
|
||||
* @copyright Copyright (C) 2015 - 2018 Trilby Media, LLC. All rights reserved.
|
||||
* @copyright Copyright (c) 2015 - 2021 Trilby Media, LLC. All rights reserved.
|
||||
* @license MIT License; see LICENSE file for details.
|
||||
*/
|
||||
|
||||
@@ -14,14 +15,14 @@ use Doctrine\Common\Collections\AbstractLazyCollection as BaseAbstractLazyCollec
|
||||
* General JSON serializable collection.
|
||||
*
|
||||
* @package Grav\Framework\Collection
|
||||
* @template TKey
|
||||
* @template T
|
||||
* @extends BaseAbstractLazyCollection<TKey,T>
|
||||
* @implements CollectionInterface<TKey,T>
|
||||
*/
|
||||
abstract class AbstractLazyCollection extends BaseAbstractLazyCollection implements CollectionInterface
|
||||
{
|
||||
/**
|
||||
* The backed collection to use
|
||||
*
|
||||
* @var ArrayCollection
|
||||
*/
|
||||
/** @var ArrayCollection The backed collection to use */
|
||||
protected $collection;
|
||||
|
||||
/**
|
||||
@@ -30,6 +31,7 @@ abstract class AbstractLazyCollection extends BaseAbstractLazyCollection impleme
|
||||
public function reverse()
|
||||
{
|
||||
$this->initialize();
|
||||
|
||||
return $this->collection->reverse();
|
||||
}
|
||||
|
||||
@@ -39,6 +41,7 @@ abstract class AbstractLazyCollection extends BaseAbstractLazyCollection impleme
|
||||
public function shuffle()
|
||||
{
|
||||
$this->initialize();
|
||||
|
||||
return $this->collection->shuffle();
|
||||
}
|
||||
|
||||
@@ -48,15 +51,37 @@ abstract class AbstractLazyCollection extends BaseAbstractLazyCollection impleme
|
||||
public function chunk($size)
|
||||
{
|
||||
$this->initialize();
|
||||
|
||||
return $this->collection->chunk($size);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function select(array $keys)
|
||||
{
|
||||
$this->initialize();
|
||||
|
||||
return $this->collection->select($keys);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function unselect(array $keys)
|
||||
{
|
||||
$this->initialize();
|
||||
|
||||
return $this->collection->unselect($keys);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
{
|
||||
$this->initialize();
|
||||
|
||||
return $this->collection->jsonSerialize();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user