Completed
Push — master ( d9ba74...595cfb )
by Stefano
20:57
created

DataMapperManagerAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 23
wmc 2
lcom 0
cbo 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDataMapperManager() 0 4 1
A setDataMapperManager() 0 4 1
1
<?php
2
/**
3
 * @author Stefano Torresi (http://stefanotorresi.it)
4
 * @license See the file LICENSE.txt for copying permission.
5
 * ************************************************
6
 */
7
8
namespace Thorr\Persistence\DataMapper\Manager;
9
10
trait DataMapperManagerAwareTrait
11
{
12
    /**
13
     * @var DataMapperManager
14
     */
15
    protected $dataMapperManager;
16
17
    /**
18
     * @return DataMapperManager
19
     */
20 1
    public function getDataMapperManager()
21
    {
22 1
        return $this->dataMapperManager;
23
    }
24
25
    /**
26
     * @param DataMapperManager $dataMapperManager
27
     */
28 1
    public function setDataMapperManager(DataMapperManager $dataMapperManager)
29
    {
30 1
        $this->dataMapperManager = $dataMapperManager;
31 1
    }
32
}
33