AbstractAction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
1
<?php
2
3
namespace Conveyor\Actions\Abstractions;
4
5
use Exception;
6
use Conveyor\Actions\Interfaces\ActionInterface;
7
8
abstract class AbstractAction implements ActionInterface
9
{
10
    /** @var array */
11
    protected $data;
12
13
    /**
14
     * @return string
15
     */
16
    public function getName() : string
17
    {
18
        return $this->name;
19
    }
20
21
    /**
22
     * @param array $data
23
     * @return void
24
     *
25
     * @throws Exception
26
     */
27
    abstract public function validateData(array $data) : void;
28
29
    /**
30
     *
31
     */
32
    abstract public function execute(array $data);
33
}
34