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

Font   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 6
c 1
b 0
f 0
dl 0
loc 28
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A weight() 0 3 1
A size() 0 3 1
A style() 0 3 1
A family() 0 3 1
A getName() 0 3 1
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