Table::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/**
4
 * (c) 2018 Douglas Reith.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
declare(strict_types=1);
10
11
namespace Reith\ToyRobot\Domain\Space;
12
13
class Table extends AbstractSymmetricSpace
14
{
15
    /**
16
     * @param int $boundarySize
17
     */
18 21
    public static function create(int $boundarySize): Table
19
    {
20 21
        return new static(
21 21
            2, // 2 dimensions x,y
22 21
            $boundarySize
23
        );
24
    }
25
}
26