public tableMethod ( string $action ) : string | ||
$action | string | Name of action to take against the table |
return | string |
public function tableMethod($action)
{
if ($action === 'drop_table') {
return 'drop';
}
if ($action === 'create_table') {
return 'create';
}
return 'update';
}