Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Attribute | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace Wikimedia\RemexHtml\Tokenizer; |
4 | |
5 | use Wikimedia\RemexHtml\PropGuard; |
6 | |
7 | /** |
8 | * A namespaced attribute, as returned by Attributes::getObjects() |
9 | */ |
10 | class Attribute { |
11 | use PropGuard; |
12 | |
13 | public $qualifiedName; |
14 | public $namespaceURI; |
15 | public $prefix; |
16 | public $localName; |
17 | public $value; |
18 | |
19 | public function __construct( $qualifiedName, $namespaceURI, $prefix, $localName, $value ) { |
20 | $this->qualifiedName = $qualifiedName; |
21 | $this->namespaceURI = $namespaceURI; |
22 | $this->prefix = $prefix; |
23 | $this->localName = $localName; |
24 | $this->value = $value; |
25 | } |
26 | } |