| 1 | <?php |
||
| 21 | abstract class AbstractEvent extends Event |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var mixed |
||
| 25 | */ |
||
| 26 | private $data; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var TypeMetadataInterface |
||
| 30 | */ |
||
| 31 | private $type; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var ContextInterface |
||
| 35 | */ |
||
| 36 | private $context; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param mixed $data |
||
| 40 | * @param TypeMetadataInterface $type |
||
| 41 | * @param ContextInterface $context |
||
| 42 | */ |
||
| 43 | public function __construct($data, TypeMetadataInterface $type, ContextInterface $context) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return mixed |
||
| 52 | */ |
||
| 53 | public function getData() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return TypeMetadataInterface |
||
| 60 | */ |
||
| 61 | public function getType() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return ContextInterface |
||
| 68 | */ |
||
| 69 | public function getContext() |
||
| 73 | } |
||
| 74 |