public indexMethod ( string $action ) : string | ||
$action | string | Name of action to take against the table |
Результат | string |
public function indexMethod($action)
{
if ($action === 'drop_field') {
return 'removeIndex';
}
return 'addIndex';
}