FeatureTypeAvMetaEvent   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 54
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getFeatureTypeAvMeta() 0 4 1
A setFeatureTypeAvMeta() 0 6 1
A getConnectionInterface() 0 4 1
A setConnectionInterface() 0 6 1
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the module FeatureType                                  */
4
/*                                                                                   */
5
/*      For the full copyright and license information, please view the LICENSE.txt  */
6
/*      file that was distributed with this source code.                             */
7
/*************************************************************************************/
8
9
namespace FeatureType\Event;
10
11
use FeatureType\Model\FeatureTypeAvMeta;
12
use Propel\Runtime\Connection\ConnectionInterface;
13
use Thelia\Core\Event\ActionEvent;
14
15
/**
16
 * Class FeatureTypeAvMetaEvent
17
 * @package FeatureType\Event
18
 * @author Gilles Bourgeat <[email protected]>
19
 */
20
class FeatureTypeAvMetaEvent extends ActionEvent
21
{
22
    /** @var ConnectionInterface|null */
23
    protected $connectionInterface = null;
24
25
    /** @var FeatureTypeAvMeta */
26
    protected $featureAvMeta = null;
27
28
    /**
29
     * @param FeatureTypeAvMeta $featureAvMeta
30
     */
31
    public function __construct(FeatureTypeAvMeta $featureAvMeta)
32
    {
33
        $this->featureAvMeta = $featureAvMeta;
34
    }
35
36
    /**
37
     * @return FeatureTypeAvMeta
38
     */
39
    public function getFeatureTypeAvMeta()
40
    {
41
        return $this->featureAvMeta;
42
    }
43
44
    /**
45
     * @param $featureAvMeta
46
     * @return $this
47
     */
48
    public function setFeatureTypeAvMeta(FeatureTypeAvMeta $featureAvMeta)
49
    {
50
        $this->featureAvMeta = $featureAvMeta;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return null|ConnectionInterface
57
     */
58
    public function getConnectionInterface()
59
    {
60
        return $this->connectionInterface;
61
    }
62
63
    /**
64
     * @param ConnectionInterface $connectionInterface
65
     * @return $this
66
     */
67
    public function setConnectionInterface(ConnectionInterface $connectionInterface)
68
    {
69
        $this->connectionInterface = $connectionInterface;
70
71
        return $this;
72
    }
73
}
74