1 | <?php |
||
7 | abstract class Action implements Executable |
||
8 | { |
||
9 | /** |
||
10 | * The model instance |
||
11 | * @var ActiveRecord |
||
12 | */ |
||
13 | protected $model; |
||
14 | |||
15 | /** |
||
16 | * Action Constructor. |
||
17 | * |
||
18 | * @param ActiveRecord $model The model performing the action |
||
19 | */ |
||
20 | public function __construct(ActiveRecord $model) |
||
24 | |||
25 | /** |
||
26 | * Execute the action. |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | abstract public function execute(); |
||
31 | } |
||
32 |