Transform   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 30
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
transformSubject() 0 1 ?
transformField() 0 1 ?
A setField() 0 6 1
A getField() 0 4 1
1
<?php
2
3
namespace StoutLogic\ACF\Migrations;
4
5
abstract class Transform
6
{
7
    /**
8
     * @var Field
9
     */
10
    private $field;
11
12
    abstract public function transformSubject(HasMetaData $subject);
13
14
    abstract public function transformField();
15
16
    /**
17
     * @param Field $field
18
     * @return $this
19
     */
20
    public function setField(Field $field)
21
    {
22
        $this->field = $field;
23
24
        return $this;
25
    }
26
27
    /**
28
     * @return Field
29
     */
30
    public function getField()
31
    {
32
        return $this->field;
33
    }
34
}
35