Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
Article | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace Wikimedia\Parsoid\ParserTests; |
5 | |
6 | /** |
7 | * Represents a parser test |
8 | */ |
9 | class Article extends Item { |
10 | /** @var string */ |
11 | public $title; |
12 | |
13 | /** @var string */ |
14 | public $text; |
15 | |
16 | /** |
17 | * @param array $articleProps key-value mapping of properties |
18 | * @param ?string $comment Optional comment describing the article |
19 | */ |
20 | public function __construct( array $articleProps, ?string $comment = null ) { |
21 | parent::__construct( $articleProps, $comment ); |
22 | $this->title = $articleProps['title']; |
23 | $this->text = $articleProps['text']; |
24 | } |
25 | } |