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

AbstractObjectType   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 2
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