ConflictEventArgs   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 31
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getData() 0 4 1
A getDocumentManager() 0 4 1
A getDocumentName() 0 4 1
1
<?php
2
3
4
namespace Doctrine\ODM\CouchDB\Event;
5
6
class ConflictEventArgs extends \Doctrine\Common\EventArgs
7
{
8
    private $data;
9
    private $documentManager;
10
    private $documentName;
11
12
    public function __construct($data, $documentManager, $documentName)
13
    {
14
        $this->data = $data;
15
        $this->documentManager = $documentManager;
16
        $this->documentName = $documentName;
17
    }
18
19
    public function getData()
20
    {
21
        return $this->data;
22
    }
23
24
    /**
25
     * @return \Doctrine\ODM\CouchDB\DocumentManager
26
     */
27
    public function getDocumentManager()
28
    {
29
        return $this->documentManager;
30
    }
31
32
    public function getDocumentName()
33
    {
34
        return $this->documentName;
35
    }
36
}
37