YamlProperties   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
dl 0
loc 22
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Dallgoot\Yaml;
4
5
/**
6
 * Encapsulate the properties of a YAML Document
7
 *
8
 * @author  Stéphane Rebai <[email protected]>
9
 * @license Apache 2.0
10
 * @link    https://github.com/dallgoot/yaml
11
 */
12
class YamlProperties
13
{
14
    public ?bool $_hasDocStart = null; // null = no docstart, true = docstart before document comments, false = docstart after document comments
15
16
    public array $_anchors  = [];
17
18
    public array $_comments = [];
19
20
    public array $_tags     = [];
21
22
    public int $_options;
23
24
    public ?string $value = null;
25
26
    /**
27
     * Creates API object to be used for the document provided as argument
28
     *
29
     * @param int $buildingOptions the YamlObject as the target for all methods call that needs it
30
     */
31
    public function __construct(int $buildingOptions)
32
    {
33
        $this->_options = $buildingOptions;
34
    }
35
}
36