UpdateConflictException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Doctrine\ODM\CouchDB;
4
5
/**
6
 * Thrown by the UnitOfWork when errors happen on flush.
7
 *
8
 * Contains all the documents that produced errors while batch-updating them.
9
 *
10
 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
11
 * @link        www.doctrine-project.com
12
 * @since       1.0
13
 * @author      Benjamin Eberlei <[email protected]>
14
 */
15
class UpdateConflictException extends \Exception
16
{
17
    /**
18
     * @var array
19
     */
20
    private $updateConflictDocuments = array();
21
22
    /**
23
     * @param array $updateConflictDocuments
24
     */
25
    public function __construct($updateConflictDocuments)
26
    {
27
        $this->updateConflictDocuments = $updateConflictDocuments;
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function getUpdateConflictDocuments()
34
    {
35
        return $this->updateConflictDocuments;
36
    }
37
}
38