質問編集履歴
2
気泡漏れ
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
|
13
|
-
getUserStatusById($id){
|
13
|
+
public function getUserStatusById($id){
|
14
14
|
|
15
15
|
return userStatus;
|
16
16
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
getUserStatusByType($type){
|
21
|
+
public function getUserStatusByType($type){
|
22
22
|
|
23
23
|
return userStatus;
|
24
24
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
getUserStatusByTypeAndId($type, $id){
|
29
|
+
public function getUserStatusByTypeAndId($type, $id){
|
30
30
|
|
31
31
|
return userStatus;
|
32
32
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
PHPでオーバーロードが出来ないせいで
|
1
|
+
PHPでオーバーロードが出来ないせいで下記のような関数が生まれてしまいました。
|
2
2
|
|
3
3
|
ByHoge 以外に良い命名は無いでしょうか?
|
4
4
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
getUserStatusById($id){
|
14
14
|
|
15
|
-
return userStatus;
|
15
|
+
return userStatus;
|
16
16
|
|
17
17
|
}
|
18
18
|
|
@@ -20,9 +20,7 @@
|
|
20
20
|
|
21
21
|
getUserStatusByType($type){
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
return userStatus;
|
23
|
+
return userStatus;
|
26
24
|
|
27
25
|
}
|
28
26
|
|
@@ -30,9 +28,7 @@
|
|
30
28
|
|
31
29
|
getUserStatusByTypeAndId($type, $id){
|
32
30
|
|
33
|
-
|
34
|
-
|
35
|
-
return userStatus;
|
31
|
+
return userStatus;
|
36
32
|
|
37
33
|
}
|
38
34
|
|