* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Domain\Module\Command; /** * Bulk toggles module status */ class BulkToggleModuleStatusCommand { /** * @var array */ private $modules; /** * @var bool */ private $expectedStatus; /** * @param array $modules Array of technical names for modules * @param bool $expectedStatus */ public function __construct(array $modules, bool $expectedStatus) { $this->modules = $modules; $this->expectedStatus = $expectedStatus; } /** * @return array */ public function getModules(): array { return $this->modules; } /** * @return bool */ public function getExpectedStatus(): bool { return $this->expectedStatus; } }