Font::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 4
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace EaselDrawing;
4
5
class Font
6
{
7
    /** @var string */
8
    private $family;
9
    /** @var bool */
10
    private $isBold;
11
    /** @var bool */
12
    private $isItalic;
13
    /** @var string */
14
    private $file;
15
16
    public function __construct(string $family, bool $isBold, bool $isItalic, string $file)
17
    {
18
        $this->family = $family;
19
        $this->isBold = $isBold;
20
        $this->isItalic = $isItalic;
21
        $this->file = $file;
22
    }
23
24
    public function getFamily() : string
25
    {
26
        return $this->family;
27
    }
28
29
    public function isBold() : bool
30
    {
31
        return $this->isBold;
32
    }
33
34
    public function isItalic() : bool
35
    {
36
        return $this->isItalic;
37
    }
38
39
    public function getFile() : string
40
    {
41
        return $this->file;
42
    }
43
}
44