Passed
Branch feature/babel (9a8402)
by John
03:52
created

Babel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A crawl() 0 3 1
A submit() 0 3 1
A judge() 0 3 1
1
<?php
2
namespace App\Babel;
3
4
use App\Babel\Submit\Submitter;
5
use App\Babel\Crawl\Crawler;
6
use App\Babel\Judge\Judger;
7
8
class Babel
9
{
10
11
    public function submit($conf)
12
    {
13
        return new Submitter($conf);
14
    }
15
16
    public function crawl($conf)
17
    {
18
        return new Crawler($conf);
19
    }
20
21
    public function judge()
22
    {
23
        return new Judger();
24
    }
25
26
}
27