Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
75.00% covered (warning)
75.00%
3 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
PPDPart_Hash
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
1<?php
2/**
3 * @license GPL-2.0-or-later
4 * @file
5 * @ingroup Parser
6 */
7
8namespace MediaWiki\Parser;
9
10/**
11 * @ingroup Parser
12 */
13// phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
14class PPDPart_Hash {
15    /**
16     * @var string[] Output accumulator
17     */
18    public $out;
19
20    /**
21     * @var int|null Index of equals sign, if found
22     */
23    public $eqpos;
24
25    /**
26     * @var int|null
27     */
28    public $commentEnd;
29
30    /**
31     * @var int|null
32     */
33    public $visualEnd;
34
35    public function __construct( string $out = '' ) {
36        $this->out = [];
37
38        if ( $out !== '' ) {
39            $this->out[] = $out;
40        }
41    }
42}
43
44/** @deprecated class alias since 1.43 */
45class_alias( PPDPart_Hash::class, 'PPDPart_Hash' );