UpdateConflictException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 23
rs 10

2 Methods

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