LoggingConfiguration::setHydrationLogger()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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
}