MediaEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Alpixel\Bundle\MediaBundle\EventListener;
4
5
use Alpixel\Bundle\MediaBundle\Entity\Media;
6
use Symfony\Component\EventDispatcher\Event;
7
8
class MediaEvent extends Event
9
{
10
    protected $media;
11
12
    const POST_SUBMIT = 'alpixel.media.post_submit';
13
14
    public function __construct(Media $media)
15
    {
16
        $this->media = $media;
17
    }
18
19
    /**
20
     * Gets the value of media.
21
     *
22
     * @return mixed
23
     */
24
    public function getMedia()
25
    {
26
        return $this->media;
27
    }
28
}
29