Passed
Push — master ( 42571c...f8295f )
by stéphane
09:20
created

YamlProperties::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
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
    /** @var null|boolean */
15
    public $_hasDocStart; // null = no docstart, true = docstart before document comments, false = docstart after document comments
16
    /** @var array */
17
    public $_anchors  = [];
18
    /** @var array */
19
    public $_comments = [];
20
    /** @var array */
21
    public $_tags     = [];
22
    /** @var int */
23
    public $_options;
24
    /** @var null|string */
25
    public $value;
26
27
    /**
28
     * Creates API object to be used for the document provided as argument
29
     *
30
     * @param YamlObject $obj the YamlObject as the target for all methods call that needs it
31
     */
32
    public function __construct(int $buildingOptions)
33
    {
34
        $this->_options = $buildingOptions;
35
    }
36
37
}
38