Passed
Push — refactor_render ( 1be99d...7e011e )
by Mattia
09:18
created

SkinFront   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 9
c 1
b 0
f 1
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A startingPoints() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Minepic\Image\Sections;
6
7
use Minepic\Image\Components\Component;
8
use Minepic\Image\Components\Side;
9
use Minepic\Image\Point;
10
11
class SkinFront extends BaseSkinSection
12
{
13
    /** @var string */
14
    protected string $side = Side::FRONT;
15
16
    /**
17
     * @return Point[]
18
     */
19
    protected function startingPoints(): array
20
    {
21
        return [
22
            Component::HEAD => new Point(4, 0),
23
            Component::TORSO => new Point(4, 8),
24
            Component::RIGHT_ARM => new Point(0, 8),
25
            Component::LEFT_ARM => new Point(12, 8),
26
            Component::RIGHT_LEG => new Point(4, 20),
27
            Component::LEFT_LEG => new Point(8, 20),
28
        ];
29
    }
30
}
31