* @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\Backup; final class BackupCollection implements BackupCollectionInterface { /** * @var BackupInterface[] */ private $backups = []; /** * {@inheritdoc} */ public function add(BackupInterface $backup) { $this->backups[] = $backup; return $this; } /** * {@inheritdoc} */ public function all() { return $this->backups; } }