Completed
Push — master ( b8b70e...552805 )
by Portey
03:44
created

SchemaContainableTrait::setSchema()   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
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Date: 04.12.15
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\GraphQL\Definition\Traits;
9
10
11
use Youshido\GraphQL\Schema;
12
13
trait SchemaContainableTrait
14
{
15
16
    /** @var  Schema */
17
    protected $schema;
18
19
    /**
20
     * @param $schema Schema
21
     */
22 3
    public function setSchema($schema)
23
    {
24 3
        $this->schema = $schema;
25 3
    }
26
27
    /**
28
     * @return Schema
29
     */
30 1
    public function getSchema()
31
    {
32 1
        return $this->schema;
33
    }
34
}