* @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\Action\Row; use PrestaShop\PrestaShop\Core\Grid\Collection\AbstractCollection; /** * Class RowActionCollection defines contract for grid row action collection. */ final class RowActionCollection extends AbstractCollection implements RowActionCollectionInterface { /** * {@inheritdoc} */ public function add(RowActionInterface $action) { $this->items[$action->getId()] = $action; return $this; } }