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

TransitionEvent::setContext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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