UploadEvent::getContainer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Rafidion Michael
5
 * Date: 30/11/2014
6
 * Time: 18:21
7
 */
8
9
namespace Mykees\MediaBundle\Event;
10
11
12
use Symfony\Component\EventDispatcher\Event;
13
14
class UploadEvent extends Event {
15
16
    public $media;
17
    public $model;
18
    public $model_id;
19
    public $file;
20
    public $container;
21
    public $rootDir;
22
23
    /**
24
     * @return mixed
25
     */
26
    public function getMedia()
27
    {
28
        return $this->media;
29
    }
30
31
    /**
32
     * @param mixed $media
33
     */
34
    public function setMedia($media)
35
    {
36
        $this->media = $media;
37
    }
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getMediableModel()
43
    {
44
        return $this->model;
45
    }
46
47
    /**
48
     * @param mixed $model
49
     */
50
    public function setMediableModel($model)
51
    {
52
        $this->model = $model;
53
    }
54
55
    /**
56
     * @return mixed
57
     */
58
    public function getMediableId()
59
    {
60
        return $this->model_id;
61
    }
62
63
    /**
64
     * @param mixed $model_id
65
     */
66
    public function setMediableId($model_id)
67
    {
68
        $this->model_id = $model_id;
69
    }
70
71
    /**
72
     * @return mixed
73
     */
74
    public function getFile()
75
    {
76
        return $this->file;
77
    }
78
79
    /**
80
     * @param mixed $file
81
     */
82
    public function setFile($file)
83
    {
84
        $this->file = $file;
85
    }
86
87
    public function getContainer()
88
    {
89
        return $this->container;
90
    }
91
    public function setContainer($container)
92
    {
93
        $this->container = $container;
94
    }
95
96
97
    public function getRootDir()
98
    {
99
        return $this->rootDir;
100
    }
101
102
    public function setRootDir($rootDir)
103
    {
104
        $this->rootDir = $rootDir;
105
    }
106
}
107