AbstractHydratorFixture   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 31
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arp\LaminasDoctrine\Data;
6
7
use Laminas\Hydrator\HydratorInterface;
8
9
/**
10
 * @author  Alex Patterson <[email protected]>
11
 * @package Arp\LaminasDoctrine\Data
12
 */
13
abstract class AbstractHydratorFixture extends AbstractFixture
14
{
15
    /**
16
     * The fully qualified class name to create and hydrate
17
     *
18
     * @var string
19
     */
20
    protected string $className;
21
22
    /**
23
     * The hydrator used to construct the instance
24
     *
25
     * @var HydratorInterface
26
     */
27
    protected HydratorInterface $hydrator;
28
29
    /**
30
     * An array of configuration data
31
     *
32
     * @var array<mixed>
33
     */
34
    protected array $data;
35
36
    /**
37
     * @param HydratorInterface $hydrator
38
     * @param array<mixed>      $data
39
     */
40
    public function __construct(HydratorInterface $hydrator, array $data)
41
    {
42
        $this->hydrator = $hydrator;
43
        $this->data = $data;
44
    }
45
}
46