Completed
Push — master ( 64aadc...42618f )
by Fenz
02:28
created

NamelessSectionNode::open()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Importance

Changes 0
Metric Value
dl 6
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Htsl\Parser\Node;
4
5
use Htsl\Htsl;
6
use Htsl\ReadingBuffer\Line;
7
use Htsl\Parser\Section;
8
9
////////////////////////////////////////////////////////////////
10
11
class NamelessSectionNode extends SectionNode
12
{
13
	/**
14
	 * Real constructor.
15
	 *
16
	 * @access protected
17
	 *
18
	 * @return \Htsl\Parser\Node\Contracts\ANode
19
	 */
20
	protected function construct():parent
21
	{
22
		$this->name= null;
0 ignored issues
show
Bug introduced by
The property name cannot be accessed from this context as it is declared private in class Htsl\Parser\Node\SectionNode.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
23
24
		return $this;
25
	}
26
}
27