@@ -11,32 +11,36 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | public function isUpdate($setter=null) |
| 13 | 13 | { |
| 14 | - if(is_bool($setter)) |
|
| 15 | - $this->query_type = self::CODE_UPDATE; |
|
| 14 | + if(is_bool($setter)) { |
|
| 15 | + $this->query_type = self::CODE_UPDATE; |
|
| 16 | + } |
|
| 16 | 17 | |
| 17 | 18 | return $this->query_type === self::CODE_UPDATE; |
| 18 | 19 | } |
| 19 | 20 | |
| 20 | 21 | public function isDelete($setter=null) |
| 21 | 22 | { |
| 22 | - if(is_bool($setter)) |
|
| 23 | - $this->query_type = self::CODE_DELETE; |
|
| 23 | + if(is_bool($setter)) { |
|
| 24 | + $this->query_type = self::CODE_DELETE; |
|
| 25 | + } |
|
| 24 | 26 | |
| 25 | 27 | return $this->query_type === self::CODE_DELETE; |
| 26 | 28 | } |
| 27 | 29 | |
| 28 | 30 | public function isInsert($setter=null) |
| 29 | 31 | { |
| 30 | - if(is_bool($setter)) |
|
| 31 | - $this->query_type = self::CODE_CREATE; |
|
| 32 | + if(is_bool($setter)) { |
|
| 33 | + $this->query_type = self::CODE_CREATE; |
|
| 34 | + } |
|
| 32 | 35 | |
| 33 | 36 | return $this->query_type === self::CODE_CREATE; |
| 34 | 37 | } |
| 35 | 38 | |
| 36 | 39 | public function isSelect($setter=null) |
| 37 | 40 | { |
| 38 | - if(is_bool($setter)) |
|
| 39 | - $this->query_type = self::CODE_SELECT; |
|
| 41 | + if(is_bool($setter)) { |
|
| 42 | + $this->query_type = self::CODE_SELECT; |
|
| 43 | + } |
|
| 40 | 44 | |
| 41 | 45 | return $this->query_type === self::CODE_SELECT; |
| 42 | 46 | } |
@@ -49,22 +53,25 @@ discard block |
||
| 49 | 53 | |
| 50 | 54 | public function tableName($setter=null) |
| 51 | 55 | { |
| 52 | - if(!is_null($setter)) |
|
| 53 | - $this->query_table = $setter; |
|
| 56 | + if(!is_null($setter)) { |
|
| 57 | + $this->query_table = $setter; |
|
| 58 | + } |
|
| 54 | 59 | return $this->query_table; |
| 55 | 60 | } |
| 56 | 61 | |
| 57 | 62 | public function tablePk($setter=null) |
| 58 | 63 | { |
| 59 | - if(!is_null($setter)) |
|
| 60 | - $this->query_id = $setter; |
|
| 64 | + if(!is_null($setter)) { |
|
| 65 | + $this->query_id = $setter; |
|
| 66 | + } |
|
| 61 | 67 | return $this->query_id; |
| 62 | 68 | } |
| 63 | 69 | |
| 64 | 70 | public function operatorId($setter=null) |
| 65 | 71 | { |
| 66 | - if(!is_null($setter)) |
|
| 67 | - $this->query_by = $setter; |
|
| 72 | + if(!is_null($setter)) { |
|
| 73 | + $this->query_by = $setter; |
|
| 74 | + } |
|
| 68 | 75 | return $this->query_by; |
| 69 | 76 | } |
| 70 | 77 | } |