Task   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 24
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
getMessageSuccess() 0 1 ?
1
<?php
2
namespace AppBundle\Sync\Entity;
3
4
/**
5
 * Abstract class for task implementation
6
 *
7
 * @author Sergey Sadovoi <[email protected]>
8
 */
9
abstract class Task extends Entity
10
{
11
    /**
12
     * @var string  Name of the task
13
     */
14
    protected $name;
15
16
    /**
17
     * Get task name
18
     *
19
     * @return string
20
     */
21 5
    public function getName()
22
    {
23 5
        return $this->name;
24
    }
25
26
    /**
27
     * Returns the result message after task execution
28
     *
29
     * @return string  Success message
30
     */
31
    abstract public function getMessageSuccess();
32
}
33