LifecycleEventArgs   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 28
rs 10

3 Methods

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