LoggingConfiguration   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getHydrationLogger() 0 6 2
A setHydrationLogger() 0 4 1
1
<?php
2
/**
3
 * @author Dolgov_M <[email protected]>
4
 * @date   11.11.2016 17:32
5
 */
6
7
namespace SilexDoctrineHydrationProfile\Fix;
8
9
10
use Debesha\DoctrineProfileExtraBundle\ORM\HydrationLogger;
11
use Doctrine\ORM\Configuration;
12
13
class LoggingConfiguration extends Configuration
14
{
15
16
    /**
17
     * Gets the hydration logger.
18
     *
19
     * @return HydrationLogger
20
     */
21
    public function getHydrationLogger()
22
    {
23
        return isset($this->_attributes['hydrationLogger'])
24
            ? $this->_attributes['hydrationLogger']
25
            : null;
26
    }
27
28
    /**
29
     * Sets the hydration logger.
30
     *
31
     * @param HydrationLogger $logger
32
     *
33
     * @return void
34
     */
35
    public function setHydrationLogger(HydrationLogger $logger)
36
    {
37
        $this->_attributes['hydrationLogger'] = $logger;
38
    }
39
}