OnFlushEventArgs   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getDocumentManager() 0 4 1
1
<?php
2
3
4
namespace Doctrine\ODM\CouchDB\Event;
5
6
class OnFlushEventArgs extends \Doctrine\Common\EventArgs
7
{
8
    private $documentManager;
9
10
    public function __construct($documentManager)
11
    {
12
        $this->documentManager = $documentManager;
13
    }
14
15
    /**
16
     * @return \Doctrine\ODM\CouchDB\DocumentManager
17
     */
18
    public function getDocumentManager()
19
    {
20
        return $this->documentManager;
21
    }
22
}
23