Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | trait PotentialActionsTrait |
||
23 | { |
||
24 | /** |
||
25 | * @var Action[] collection of potential Action, which describes an idealized action in which this thing |
||
26 | * would play an 'object' role |
||
27 | * |
||
28 | * @ApiProperty( |
||
29 | * iri="http://schema.org/potentialAction", |
||
30 | * readable=true, |
||
31 | * writable=false |
||
32 | * ) |
||
33 | * @Groups({"workflowAction:output"}) |
||
34 | */ |
||
35 | private $potentialAction = []; |
||
36 | |||
37 | /** |
||
38 | * @param Action $action |
||
39 | */ |
||
40 | public function addPotentialAction(Action $action) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return array |
||
47 | */ |
||
48 | public function getPotentialAction(): array |
||
53 |