예제 #1
0
 public static function getFromValue($value)
 {
     $output = null;
     if (ApiResult::success()->getValue() == $value) {
         $output = ApiResult::success();
     } elseif (ApiResult::error()->getValue() == $value) {
         $output = ApiResult::error();
     }
     return $output;
 }