LifecycleEventArgs::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
4
namespace Doctrine\ODM\CouchDB\Event;
5
6
class LifecycleEventArgs extends \Doctrine\Common\EventArgs
7
{
8
    private $document;
9
10
    private $documentManager;
11
12
    function __construct($document, $documentManager)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
13
    {
14
        $this->document = $document;
15
        $this->documentManager = $documentManager;
16
    }
17
18
    /**
19
     * @return object
20
     */
21
    public function getDocument()
22
    {
23
        return $this->document;
24
    }
25
26
    /**
27
     * @return \Doctrine\ODM\CouchDB\DocumentManager
28
     */
29
    public function getDocumentManager()
30
    {
31
        return $this->documentManager;
32
    }
33
}
34