ConflictEventArgs::getData()   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 0
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