- Аргументы
-
[ 'JOB_IDS' => [1, 2, 3], 'USER_IDS' => [1, 2, 3], 'COLLAB_IDS' => [1, 2, 3], ]
<?php
declare(strict_types=1);
#[AtLeastOnePropertyNotEmpty(['jobIds', 'userIds', 'collabIds'])]
class DeleteJobsCommand extends AbstractCommand
{
#[ArrayOfPositiveNumbers]
#[ArrayOfJobTypes]
#[ArrayOfPositiveNumbers]
#[ArrayOfPositiveNumbers]
{
$this->jobIds =
$filter[
'JOB_IDS'] ?? [];
$this->jobTypes =
$filter[
'JOB_TYPES'] ?? [];
$this->userIds =
$filter[
'USER_IDS'] ?? [];
$this->collabIds =
$filter[
'COLLAB_IDS'] ?? [];
parent::__construct();
}
protected function execute(): Result
{
$handler = new DeleteJobCollectionHandler();
return $handler($this);
}
}
readonly array $collabIds
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)