src/Phinx/Db/Plan/Plan.php
public function execute(AdapterInterface $executor)
    {
        foreach ($this->tableCreates as $newTable) {
            $executor->createTable($newTable->getTable(), $newTable->getColumns(), $newTable->getIndexes());
        }

        collection($this->updatesSequence())
            ->unfold()
            ->each(function ($updates) use ($executor) {
                $executor->executeActions($updates->getTable(), $updates->getActions());
            });
    }
public function execute(AdapterInterface $executor)
    {
        foreach ($this->tableCreates as $newTable) {
            $executor->createTable($newTable->getTable(), $newTable->getColumns(), $newTable->getIndexes());
        }

        collection($this->updatesSequence())
            ->unfold()
            ->each(function ($updates) use ($executor) {
                $executor->executeActions($updates->getTable(), $updates->getActions());
            });
    }
public function execute ( AdapterInterface $ executor ) { foreach ( $ this -> tableCreates as $ newTable ) { $ executor -> createTable ( $ newTable -> getTable ( ) , $ newTable -> getColumns ( ) , $ newTable -> getIndexes ( ) ) ; } collection ( $ this -> updatesSequence ( ) ) -> unfold ( ) -> each ( function ( $ updates ) use ( $ executor ) { $ executor -> executeActions ( $ updates -> getTable ( ) , $ updates -> getActions ( ) ) ; } ) ; }
Executes this plan using the given AdapterInterface

@param AdapterInterface $executor The executor object for the plan
@return void
Executes this plan using the given AdapterInterface