Completed
Pull Request — master (#1219)
by Maciej
09:44
created

PersistentCollection::getDeletedDocuments()   B

Complexity

Conditions 5
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 5

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 14
ccs 9
cts 9
cp 1
rs 8.8571
cc 5
eloc 9
nc 1
nop 0
crap 5
1
<?php
2
/*
3
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
 *
15
 * This software consists of voluntary contributions made by many individuals
16
 * and is licensed under the MIT license. For more information, see
17
 * <http://www.doctrine-project.org>.
18
 */
19
20
namespace Doctrine\ODM\MongoDB;
21
22
use Doctrine\Common\Collections\Collection as BaseCollection;
23
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
24
use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface;
25
use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionTrait;
26
use Doctrine\ODM\MongoDB\Utility\CollectionHelper;
27
28
/**
29
 * A PersistentCollection represents a collection of elements that have persistent state.
30
 *
31
 * @since       1.0
32
 * @author      Jonathan H. Wage <[email protected]>
33
 * @author      Roman Borschel <[email protected]>
34
 */
35
class PersistentCollection implements PersistentCollectionInterface
36
{
37
    use PersistentCollectionTrait;
38
39
    /**
40
     * @param BaseCollection $coll
41
     * @param DocumentManager $dm
42
     * @param UnitOfWork $uow
43
     */
44 389
    public function __construct(BaseCollection $coll, DocumentManager $dm, UnitOfWork $uow)
45
    {
46 389
        $this->coll = $coll;
47 389
        $this->dm = $dm;
48 389
        $this->uow = $uow;
49 389
    }
50
}
51