PHPでオーバーロードが出来ないせいで下記のような関数が生まれてしまいました。
ByHoge 以外に良い命名は無いでしょうか?
public function getUserStatusById($id){ return userStatus; } public function getUserStatusByType($type){ return userStatus; } public function getUserStatusByTypeAndId($type, $id){ return userStatus; }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/02/05 13:42