1 | <?php |
||
22 | class DissociateObject extends Action |
||
23 | { |
||
24 | use ManageTrait, |
||
25 | ResolverTrait; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | public $statusCodeSuccess = 201; |
||
31 | |||
32 | /** |
||
33 | * @param string $field |
||
34 | * @param string $element |
||
35 | * @param string $objectId |
||
36 | * @param int|null $siteId |
||
37 | * @return bool|mixed |
||
38 | * @throws HttpException |
||
39 | */ |
||
40 | public function run( |
||
65 | |||
66 | /** |
||
67 | * @param IntegrationAssociation $record |
||
68 | * @return bool |
||
69 | * @throws \Throwable |
||
70 | * @throws \yii\db\StaleObjectException |
||
71 | */ |
||
72 | protected function performAction(IntegrationAssociation $record): bool |
||
76 | } |
||
77 |