Processor::getCollection()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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