table = $table; } /** * Adds another action to the collection * * @param \Phinx\Db\Action\Action $action The action to add * @return void */ public function addAction(Action $action): void { $this->actions[] = $action; } /** * Returns the table associated to this collection * * @return \Phinx\Db\Table\Table */ public function getTable(): Table { return $this->table; } /** * Returns an array with all collected actions * * @return \Phinx\Db\Action\Action[] */ public function getActions(): array { return $this->actions; } }