Total Complexity | 8 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class GridFactory |
||
14 | { |
||
15 | 3 | public static function create(Config $config) |
|
16 | { |
||
17 | 3 | self::setSeed($config); |
|
18 | |||
19 | 3 | $cells = self::getCells($config); |
|
20 | |||
21 | 3 | $neighbors = self::getNeighbors($config); |
|
22 | |||
23 | 3 | return new Grid($config, $cells, $neighbors); |
|
24 | } |
||
25 | |||
26 | 3 | protected static function setSeed(Config $config) |
|
29 | 3 | } |
|
30 | |||
31 | 3 | protected static function getCells(Config $config) |
|
44 | } |
||
45 | |||
46 | 3 | protected static function getNeighbors(Config $config) |
|
63 |