Angle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDegrees() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of PhpAidc LabelPrinter package.
5
 *
6
 * © Appwilio (https://appwilio.com)
7
 * © JhaoDa (https://github.com/jhaoda)
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
/** @noinspection PhpUnusedPrivateFieldInspection */
14
15
declare(strict_types=1);
16
17
namespace PhpAidc\LabelPrinter\Enum;
18
19
use MyCLabs\Enum\Enum;
20
21
/**
22
 * @method static Angle _0()
23
 * @method static Angle _90()
24
 * @method static Angle _180()
25
 * @method static Angle _270()
26
 */
27
final class Angle extends Enum
28
{
29
    private const _0 = 0;
30
    private const _90 = 1;
31
    private const _180 = 2;
32
    private const _270 = 3;
33
34
    public function getDegrees(): int
35
    {
36
        return $this->getValue() * 90;
37
    }
38
}
39