Migrations\View\Helper\MigrationHelper::tableMethod PHP Метод

tableMethod() публичный Метод

Returns the method to be used for the Table::save()
public tableMethod ( string $action ) : string
$action string Name of action to take against the table
Результат string
    public function tableMethod($action)
    {
        if ($action === 'drop_table') {
            return 'drop';
        }
        if ($action === 'create_table') {
            return 'create';
        }
        return 'update';
    }