AttributeTypeAvMetaEvent   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 getAttributeTypeAvMeta() 0 4 1
A setAttributeTypeAvMeta() 0 6 1
A getConnectionInterface() 0 4 1
A setConnectionInterface() 0 6 1
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the module AttributeType                                */
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 AttributeType\Event;
10
11
use AttributeType\Model\AttributeTypeAvMeta;
12
use Propel\Runtime\Connection\ConnectionInterface;
13
use Thelia\Core\Event\ActionEvent;
14
15
/**
16
 * Class AttributeTypeAvMetaEvent
17
 * @package AttributeType\Event
18
 * @author Gilles Bourgeat <[email protected]>
19
 */
20
class AttributeTypeAvMetaEvent extends ActionEvent
21
{
22
    /** @var ConnectionInterface|null */
23
    protected $connectionInterface = null;
24
25
    /** @var AttributeTypeAvMeta */
26
    protected $attributeAvMeta = null;
27
28
    /**
29
     * @param AttributeTypeAvMeta $attributeAvMeta
30
     */
31
    public function __construct(AttributeTypeAvMeta $attributeAvMeta)
32
    {
33
        $this->attributeAvMeta = $attributeAvMeta;
34
    }
35
36
    /**
37
     * @return AttributeTypeAvMeta
38
     */
39
    public function getAttributeTypeAvMeta()
40
    {
41
        return $this->attributeAvMeta;
42
    }
43
44
    /**
45
     * @param $attributeAvMeta
46
     * @return $this
47
     */
48
    public function setAttributeTypeAvMeta(AttributeTypeAvMeta $attributeAvMeta)
49
    {
50
        $this->attributeAvMeta = $attributeAvMeta;
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