Passed
Push — php-7.1 ( 926e65...55d18e )
by SignpostMarv
07:28
created

AbstractNamedGroupItem::getDoc()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace GoetasWebservices\XML\XSDReader\Schema;
4
5
abstract class AbstractNamedGroupItem
6
{
7
    use NamedItemTrait;
8
    /**
9
     * @var Schema
10
     */
11
    protected $schema;
12
13
    /**
14
     * @var string
15
     */
16
    protected $doc = '';
17
18
    public function __construct(Schema $schema, string $name)
19
    {
20
        $this->schema = $schema;
21
        $this->name = $name;
22
    }
23
24
    public function getDoc(): string
25
    {
26
        return $this->doc;
27
    }
28
29
    /**
30
     * @return $this
31
     */
32
    public function setDoc(string $doc): self
33
    {
34
        $this->doc = $doc;
35
36
        return $this;
37
    }
38
39
    public function getSchema(): Schema
40
    {
41
        return $this->schema;
42
    }
43
}
44