1 | <?php namespace Modules\Recipe\Events; |
||
5 | class RecipeWasCreated implements StoringMedia |
||
6 | { |
||
7 | /** |
||
8 | * @var |
||
9 | */ |
||
10 | private $recipe; |
||
11 | /** |
||
12 | * @var |
||
13 | */ |
||
14 | private $data; |
||
15 | |||
16 | public function __construct($recipe, $data) |
||
21 | |||
22 | /** |
||
23 | * Return the entity |
||
24 | * @return \Illuminate\Database\Eloquent\Model |
||
25 | */ |
||
26 | public function getEntity() |
||
30 | |||
31 | /** |
||
32 | * Return the ALL data sent |
||
33 | * @return array |
||
34 | */ |
||
35 | public function getSubmissionData() |
||
39 | } |
||
40 |