Passed
Push — master ( 689ec5...45f08c )
by Sebastian
05:26
created

Font::weight()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AppUtils\StyleCollection\StyleBuilder\Flavors;
6
7
use AppUtils\StyleCollection\StyleBuilder;
8
use AppUtils\StyleCollection\StyleBuilder\Flavors\Font\FontFamily;
9
use AppUtils\StyleCollection\StyleBuilder\Flavors\Font\FontSize;
10
use AppUtils\StyleCollection\StyleBuilder\Flavors\Font\FontStyle;
11
use AppUtils\StyleCollection\StyleBuilder\Flavors\Font\FontWeight;
12
use AppUtils\StyleCollection\StyleBuilder\StyleContainer;
13
14
class Font extends StyleContainer
15
{
16
    /**
17
     * @return string
18
     */
19
    public function getName() : string
20
    {
21
        return 'font';
22
    }
23
24
    public function style() : FontStyle
25
    {
26
        return new FontStyle($this->styles, $this->collection);
27
    }
28
29
    public function family() : FontFamily
30
    {
31
        return new FontFamily($this->styles, $this->collection);
32
    }
33
34
    public function weight() : FontWeight
35
    {
36
        return new FontWeight($this->styles,$this->collection);
37
    }
38
39
    public function size() : FontSize
40
    {
41
        return new FontSize($this->styles,$this->collection);
42
    }
43
}
44