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

Action   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 25
rs 10
wmc 1
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
execute() 0 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