Factory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRegisteredHandlers() 0 9 1
1
<?php
2
3
namespace Nayjest\Querying\Handler\Doctrine;
4
5
use Nayjest\Querying\Handler\AbstractFactory;
6
use Nayjest\Querying\Operation\FetchOperation;
7
use Nayjest\Querying\Operation\FilterOperation;
8
use Nayjest\Querying\Operation\PaginateOperation;
9
use Nayjest\Querying\Operation\SortOperation;
10
11
class Factory extends AbstractFactory
12
{
13 3
    public function getRegisteredHandlers()
14
    {
15
        return [
16 3
            FilterOperation::class => FilterHandler::class,
17 3
            SortOperation::class => SortHandler::class,
18 3
            PaginateOperation::class => PaginateHandler::class,
19 3
            FetchOperation::class => FetchHandler::class,
20 3
        ];
21
    }
22
}
23