Completed
Pull Request — master (#1984)
by Maciej
22:01
created

PersistentCollection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
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 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ODM\MongoDB;
6
7
use Doctrine\Common\Collections\Collection as BaseCollection;
8
use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface;
9
use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionTrait;
10
11
/**
12
 * A PersistentCollection represents a collection of elements that have persistent state.
13
 */
14
final class PersistentCollection implements PersistentCollectionInterface
15
{
16
    use PersistentCollectionTrait;
17
18
    /**
19
     * @param BaseCollection $coll
20
     */
21 442
    public function __construct(BaseCollection $coll, DocumentManager $dm, UnitOfWork $uow)
22
    {
23 442
        $this->coll = $coll;
24 442
        $this->dm   = $dm;
25 442
        $this->uow  = $uow;
26 442
    }
27
}
28