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

DocumentCompositor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 29
rs 10
c 1
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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
}