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

SkinFront::startingPoints()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 9
rs 10
cc 1
nc 1
nop 0
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