1 | <?php |
||
28 | class Parameter implements IParameter { |
||
29 | /** @var IFormatter */ |
||
30 | protected $formatter; |
||
31 | |||
32 | /** @var mixed */ |
||
33 | protected $parameter; |
||
34 | |||
35 | /** @var IEvent */ |
||
36 | protected $event; |
||
37 | |||
38 | /** @var string */ |
||
39 | protected $type; |
||
40 | |||
41 | /** |
||
42 | * @param mixed $parameter |
||
43 | * @param IEvent $event |
||
44 | * @param IFormatter $formatter |
||
45 | * @param string $type |
||
46 | */ |
||
47 | 14 | public function __construct($parameter, |
|
56 | |||
57 | /** |
||
58 | * @return mixed |
||
59 | */ |
||
60 | 6 | public function getParameter() { |
|
67 | |||
68 | /** |
||
69 | * @return array With two entries: value and type |
||
70 | */ |
||
71 | 2 | public function getParameterInfo() { |
|
77 | |||
78 | /** |
||
79 | * @return string The formatted parameter |
||
80 | */ |
||
81 | 6 | public function format() { |
|
84 | } |
||
85 |