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

SchemaContainableTrait   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 22
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setSchema() 0 4 1
A getSchema() 0 4 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
}