Total Complexity | 7 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | class JudgerService |
||
10 | { |
||
11 | /** |
||
12 | * @param string $name |
||
13 | * @param null $bind_ip |
||
|
|||
14 | * |
||
15 | * @throws \App\Exceptions\Judger\JudgerNameExist |
||
16 | * |
||
17 | * @return \App\Entities\Judger |
||
18 | */ |
||
19 | public function newJudger($name, $bind_ip = null) |
||
34 | } |
||
35 | |||
36 | private function exist($name) |
||
37 | { |
||
38 | return app(JudgerRepository::class)->findBy('name', $name); |
||
39 | } |
||
40 | |||
41 | public function find($id) |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param $code |
||
48 | * |
||
49 | * @return Judger |
||
50 | */ |
||
51 | public function getJudger($code) |
||
58 | } |
||
59 | } |
||
60 |