Passed
Push — static-analysis ( 0c4f4f...d5a974 )
by SignpostMarv
03:25
created

SchemaItemTrait::setDoc()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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