Completed
Push — master ( bac996...b4f0b4 )
by Sébastien
01:04
created

TransitionEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setContext() 0 4 1
A getContext() 0 4 1
1
<?php
2
3
namespace Sebdesign\SM\Event;
4
5
use SM\Event\TransitionEvent as BaseTransitionEvent;
6
7
class TransitionEvent extends BaseTransitionEvent
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $context = [];
13
14
    /**
15
     * @param array $context
16
     * @return void
17
     */
18
    public function setContext(array $context)
19
    {
20
        $this->context = $context;
21
    }
22
23
    /**
24
     * @return array
25
     */
26
    public function getContext()
27
    {
28
        return $this->context;
29
    }
30
}
31