Completed
Branch master (162e0f)
by Evan
02:29
created

Action::execute()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
nc 1
dl 0
loc 1
1
<?php
2
3
namespace Silk\Database;
4
5
use Silk\Contracts\Executable;
6
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)
21
    {
22
        $this->model = $model;
23
    }
24
25
    /**
26
     * Execute the action.
27
     *
28
     * @return void
29
     */
30
    abstract public function execute();
31
}
32