* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Grid\Record; use PrestaShop\PrestaShop\Core\Grid\Collection\AbstractCollection; /** * Class RecordCollection is a wrapper around rows from database. */ final class RecordCollection extends AbstractCollection implements RecordCollectionInterface { /** * @param array $records Raw records data */ public function __construct(array $records = []) { $this->items = $records; } /** * {@inheritdoc} */ public function all() { return $this->items; } }