Command 구조 일부 수정

This commit is contained in:
2018-09-30 03:04:20 +09:00
parent 98cfc8a748
commit 082c376dde
15 changed files with 156 additions and 22 deletions
+4 -4
View File
@@ -63,10 +63,10 @@ abstract class BaseCommand{
$this->reasonNotReservable = null;
}
protected function setCity(array $args=null){
protected function setCity(?array $args=null){
$this->resetTestCache();
$db = DB::db();
if($args == null){
if($args === null){
$this->city = $this->generalObj->getRawCity();
if($this->city){
return;
@@ -83,7 +83,7 @@ abstract class BaseCommand{
protected function setNation(?array $args = null){
$this->resetTestCache();
if($args == null){
if($args === null){
$this->nation = $this->generalObj->getStaticNation();
return;
}
@@ -158,7 +158,7 @@ abstract class BaseCommand{
$constraintInput = [
'general'=>$this->generalObj->getRaw(),
'city'=>$this->city,
'nation'=>$this->city,
'nation'=>$this->nation,
'arg'=>$this->arg,
'destGeneral'=>$this->destGeneral,