* @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; use Iterator; /** * Interface ViewOptionsCollectionInterface defines contract for view options collection. */ interface ViewOptionsCollectionInterface extends Iterator { /** * Add view option to collection. * * @param string $action * @param mixed $value * * @return self */ public function add(string $action, $value); /** * Get view options as array. * * @return array */ public function all(); }