Passed
Push — master ( 6ac985...96b623 )
by Bruno
09:22 queued 14s
created

Processor::writeFile()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 12
rs 10
cc 4
nc 3
nop 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A Processor::getCollection() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Modelarium;
4
5
use GraphQL\Type\Definition\ObjectType;
6
use GraphQL\Type\Definition\Type;
7
use GraphQL\Utils\AST;
8
use Modelarium\Laravel\Targets\MigrationGenerator;
9
10
abstract class Processor
11
{
12
    /**
13
     *
14
     * @var GeneratedCollection
15
     */
16
    protected $collection = null;
17
18
    /**
19
     *
20
     * @param string $data
21
     * @return GeneratedCollection
22
     */
23
    abstract public function processString(string $data): GeneratedCollection;
24
    
25
    /**
26
     * Get the value of generated data
27
     *
28
     * @return GeneratedCollection
29
     */
30
    public function getCollection()
31
    {
32
        return $this->collection;
33
    }
34
}
35