Completed
Pull Request — master (#588)
by Mathias
07:35
created

ApiApplicationHydratorFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php
2
3
/**
4
 * YAWIK
5
 *
6
 * @filesource
7
 * @copyright 2020 CROSS Solution <https://www.cross-solution.de>
8
 * @license MIT
9
 */
10
11
declare(strict_types=1);
12
namespace Applications\Entity\Hydrator;
13
14
use Interop\Container\ContainerInterface;
15
16
/**
17
 * Factory for \Applications\Entity\Hydrator\ApiApplicationHydrator
18
 *
19
 * @author Mathias Gelhausen <[email protected]>
20
 * TODO: write tests
21
 */
22
class ApiApplicationHydratorFactory
23
{
24
    public function __invoke(
25
        ContainerInterface $container,
26
        ?string $requestedName = null,
27
        ?array $options = null
28
    ): ApiApplicationHydrator {
29
        return new ApiApplicationHydrator();
30
    }
31
}
32