Completed
Branch feature/pre-split (e5594a)
by Anton
03:09
created

DocumentCompositor::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 3
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * components
4
 *
5
 * @author    Wolfy-J
6
 */
7
namespace Spiral\ODM\Entities;
8
9
use Spiral\ODM\ODMInterface;
10
11
/**
12
 * Provides ability to composite multiple documents in a form of array.
13
 */
14
class DocumentCompositor
15
{
16
    /**
17
     * @var string
18
     */
19
    private $class;
20
21
    /**
22
     * @var array
23
     */
24
    private $data;
25
26
    /**
27
     * @var ODMInterface
28
     */
29
    protected $odm;
30
31
    /**
32
     * @param string       $class
33
     * @param array        $data
34
     * @param ODMInterface $odm
35
     */
36
    public function __construct(string $class, array $data, ODMInterface $odm)
37
    {
38
        $this->class = $class;
39
        $this->data = $data;
40
        $this->odm = $odm;
41
    }
42
}