<?php
declare(strict_types=0);
/*
* WellCommerce Foundation
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace WellCommerce\Component\DataSet\Conditions;
use WellCommerce\Component\Collections\ArrayCollection;
/**
* Class ConditionsCollection
*
* @author Adam Piotrowski <adam@wellcommerce.org>
*/
class ConditionsCollection extends ArrayCollection
{
/**
* @param ConditionInterface $condition
*/
public function add(ConditionInterface $condition)
{
$this->items[] = $condition;
}
/**
* @return ConditionInterface[]
*/
public function all()
{
return $this->items;
}
}