Completed
Push — master ( d86df2...153cd3 )
by Adam
11s
created

Html   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 21
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __callStatic() 0 8 2
1
<?php
2
3
namespace BestServedCold\HTMLBuilder;
4
5
use BestServedCold\HTMLBuilder\Html\Node,
6
    BestServedCold\HTMLBuilder\Html\Special,
7
    BestServedCold\HTMLBuilder\Html\Node\Element,
8
    InvalidArgumentException;
9
10
/**
11
 * Class Html
12
 *
13
 * @package BestServedCold\HTMLBuilder
14
 * @method  static Node a(...$arguments)
15
 * @method  static Node abbr(...$arguments)
16
 * @method  static Node address(...$arguments)
17
 * @method  static Node area(...$arguments)
18
 * @method  static Node article(...$arguments)
19
 * @method  static Node aside(...$arguments)
20
 * @method  static Node audio(...$arguments)
21
 * @method  static Node b(...$arguments)
22
 * @method  static Node base(...$arguments)
23
 * @method  static Node bdi(...$arguments)
24
 * @method  static Node bdo(...$arguments)
25
 * @method  static Node blockquote(...$arguments)
26
 * @method  static Node body(...$arguments)
27
 * @method  static Node br(...$arguments)
28
 * @method  static Node button(...$arguments)
29
 * @method  static Node canvas(...$arguments)
30
 * @method  static Node caption(...$arguments)
31
 * @method  static Node cite(...$arguments)
32
 * @method  static Node code(...$arguments)
33
 * @method  static Node col(...$arguments)
34
 * @method  static Node colgroup(...$arguments)
35
 * @method  static Node datalist(...$arguments)
36
 * @method  static Node dd(...$arguments)
37
 * @method  static Node del(...$arguments)
38
 * @method  static Node details(...$arguments)
39
 * @method  static Node dfn(...$arguments)
40
 * @method  static Node dialog(...$arguments)
41
 * @method  static Node div(...$arguments)
42
 * @method  static Node dl(...$arguments)
43
 * @method  static Node dt(...$arguments)
44
 * @method  static Node em(...$arguments)
45
 * @method  static Node embed(...$arguments)
46
 * @method  static Node fieldset(...$arguments)
47
 * @method  static Node figcaption(...$arguments)
48
 * @method  static Node figure(...$arguments)
49
 * @method  static Node footer(...$arguments)
50
 * @method  static Node form(...$arguments)
51
 * @method  static Node h1(...$arguments)
52
 * @method  static Node h2(...$arguments)
53
 * @method  static Node h3(...$arguments)
54
 * @method  static Node h4(...$arguments)
55
 * @method  static Node h5(...$arguments)
56
 * @method  static Node h6(...$arguments)
57
 * @method  static Node head(...$arguments)
58
 * @method  static Node header(...$arguments)
59
 * @method  static Node hr(...$arguments)
60
 * @method  static Node html(...$arguments)
61
 * @method  static Node i(...$arguments)
62
 * @method  static Node iframe(...$arguments)
63
 * @method  static Node img(...$arguments)
64
 * @method  static Node input(...$arguments)
65
 * @method  static Node ins(...$arguments)
66
 * @method  static Node kbd(...$arguments)
67
 * @method  static Node keygen(...$arguments)
68
 * @method  static Node label(...$arguments)
69
 * @method  static Node legend(...$arguments)
70
 * @method  static Node li(...$arguments)
71
 * @method  static Node link(...$arguments)
72
 * @method  static Node main(...$arguments)
73
 * @method  static Node map(...$arguments)
74
 * @method  static Node mark(...$arguments)
75
 * @method  static Node menu(...$arguments)
76
 * @method  static Node menuitem(...$arguments)
77
 * @method  static Node meta(...$arguments)
78
 * @method  static Node meter(...$arguments)
79
 * @method  static Node nav(...$arguments)
80
 * @method  static Node noscript(...$arguments)
81
 * @method  static Node object(...$arguments)
82
 * @method  static Node ol(...$arguments)
83
 * @method  static Node optgroup(...$arguments)
84
 * @method  static Node option(...$arguments)
85
 * @method  static Node output(...$arguments)
86
 * @method  static Node p(...$arguments)
87
 * @method  static Node param(...$arguments)
88
 * @method  static Node picture(...$arguments)
89
 * @method  static Node pre(...$arguments)
90
 * @method  static Node progress(...$arguments)
91
 * @method  static Node q(...$arguments)
92
 * @method  static Node rp(...$arguments)
93
 * @method  static Node rt(...$arguments)
94
 * @method  static Node ruby(...$arguments)
95
 * @method  static Node s(...$arguments)
96
 * @method  static Node samp(...$arguments)
97
 * @method  static Node script(...$arguments)
98
 * @method  static Node section(...$arguments)
99
 * @method  static Node select(...$arguments)
100
 * @method  static Node small(...$arguments)
101
 * @method  static Node source(...$arguments)
102
 * @method  static Node span(...$arguments)
103
 * @method  static Node strong(...$arguments)
104
 * @method  static Node style(...$arguments)
105
 * @method  static Node sub(...$arguments)
106
 * @method  static Node summary(...$arguments)
107
 * @method  static Node sup(...$arguments)
108
 * @method  static Node table(...$arguments)
109
 * @method  static Node tbody(...$arguments)
110
 * @method  static Node td(...$arguments)
111
 * @method  static Node textarea(...$arguments)
112
 * @method  static Node tfoot(...$arguments)
113
 * @method  static Node th(...$arguments)
114
 * @method  static Node thead(...$arguments)
115
 * @method  static Node time(...$arguments)
116
 * @method  static Node title(...$arguments)
117
 * @method  static Node tr(...$arguments)
118
 * @method  static Node track(...$arguments)
119
 * @method  static Node u(...$arguments)
120
 * @method  static Node ul(...$arguments)
121
 * @method  static Node var(...$arguments)
122
 * @method  static Node video(...$arguments)
123
 * @method  static Node wbr(...$arguments)
124
 */
125
abstract class Html
126
{
127
    use Special;
128
129
    /**
130
     *  Static over loader
131
     *
132
     * @param  string $name
133
     * @param  array  $arguments
134
     * @return Node
135
     * @throws InvalidArgumentException
136
     */
137 1
    public  static function __callStatic($name, $arguments)
138
    {
139 1
        if (Element::isElement($name)) {
140 1
            return new Node($name, $arguments, Element::isVoid($name));
141
        }
142
143 1
        throw new InvalidArgumentException('Method [' . $name . '] does not exist in context [' . self::class . '].');
144
    }
145
}
146