Passed
Push — master ( 59a67f...8de9a3 )
by Sam
02:16
created

AbstractObjectType::build()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
nc 2
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Digia\Lumen\GraphQL\Types;
4
5
use Youshido\GraphQL\Type\Object\AbstractObjectType as BaseAbstractObjectType;
6
7
/**
8
 * Class AbstractObjectType
9
 * @package Digia\Lumen\GraphQL\Types
10
 */
11
class AbstractObjectType extends BaseAbstractObjectType
12
{
13
14
    /**
15
     * @inheritdoc
16
     */
17
    public function build($config)
18
    {
19
        // Apply defined interfaces
20
        foreach ($this->getInterfaces() as $interface) {
21
            $config->applyInterface($interface);
22
        }
23
    }
24
}
25