1 | <?php |
||
33 | class Intent |
||
34 | { |
||
35 | |||
36 | /** |
||
37 | * List of actions to be executed |
||
38 | * |
||
39 | * @var \Phinx\Db\Action\Action[] |
||
40 | */ |
||
41 | protected $actions = []; |
||
42 | |||
43 | /** |
||
44 | * Adds a new action to the collection |
||
45 | * |
||
46 | * @param Action $action The action to add |
||
47 | * @return void |
||
48 | */ |
||
49 | public function addAction(Action $action) |
||
53 | |||
54 | /** |
||
55 | * Returns the full list of actions |
||
56 | * |
||
57 | * @return Action[] |
||
58 | */ |
||
59 | public function getActions() |
||
63 | |||
64 | /** |
||
65 | * Merges another Intent object with this one |
||
66 | * |
||
67 | * @param Intent $another The other intent to merge in |
||
68 | * @return void |
||
69 | */ |
||
70 | public function merge(Intent $another) |
||
74 | } |
||
75 |