Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 4
Article
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 4
 __construct
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 4
<?php
declare( strict_types = 1 );
namespace Wikimedia\Parsoid\ParserTests;
/**
 * Represents a parser test
 */
class Article extends Item {
    /** @var string */
    public $title;
    /** @var string */
    public $text;
    /**
     * @param array $articleProps key-value mapping of properties
     * @param ?string $comment Optional comment describing the article
     */
    public function __construct( array $articleProps, ?string $comment = null ) {
        parent::__construct( $articleProps, $comment );
        $this->title = $articleProps['title'];
        $this->text = $articleProps['text'];
    }
}