public function tableMethod($action) { if ($action === 'drop_table') { return 'drop'; } if ($action === 'create_table') { return 'create'; } return 'update'; }