1 | <?php |
||
21 | class AssociateObject extends Action |
||
22 | { |
||
23 | use ManageTrait, |
||
24 | ResolverTrait; |
||
25 | |||
26 | /** |
||
27 | * Validate that the HubSpot Object exists prior to associating |
||
28 | * |
||
29 | * @var bool |
||
30 | */ |
||
31 | public $validate = true; |
||
32 | |||
33 | /** |
||
34 | * @param IntegrationAssociation $record |
||
35 | * @return bool |
||
36 | * @throws \Exception |
||
37 | */ |
||
38 | protected function validate(IntegrationAssociation $record): bool |
||
42 | |||
43 | /** |
||
44 | * @param string $field |
||
45 | * @param string $element |
||
46 | * @param string $newObjectId |
||
47 | * @param string|null $objectId |
||
48 | * @param int|null $siteId |
||
49 | * @param int|null $sortOrder |
||
50 | * @return IntegrationAssociation |
||
51 | * @throws \yii\web\HttpException |
||
52 | */ |
||
53 | public function run( |
||
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | * @param IntegrationAssociation $record |
||
98 | * @throws \Exception |
||
99 | */ |
||
100 | protected function performAction(IntegrationAssociation $record): bool |
||
108 | } |
||
109 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.