Workflow::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
cc 1
eloc 7
c 2
b 0
f 1
nc 1
nop 7
dl 0
loc 9
rs 10
1
<?php
2
3
namespace Kaliop\eZWorkflowEngineBundle\API\Value;
4
5
use Kaliop\eZMigrationBundle\API\Value\Migration;
6
7
/**
8
 * @property-read string $signalName
9
 */
10
class Workflow extends Migration
11
{
12
    protected $signalName;
13
14
    public function __construct($name, $md5, $path, $executionDate = null, $status = 0, $executionError = null, $signalName = null)
15
    {
16
        $this->name = $name;
0 ignored issues
show
Bug introduced by
The property name is declared read-only in Kaliop\eZMigrationBundle\API\Value\Migration.
Loading history...
17
        $this->md5 = $md5;
0 ignored issues
show
Bug introduced by
The property md5 is declared read-only in Kaliop\eZMigrationBundle\API\Value\Migration.
Loading history...
18
        $this->path = $path;
0 ignored issues
show
Bug introduced by
The property path is declared read-only in Kaliop\eZMigrationBundle\API\Value\Migration.
Loading history...
19
        $this->executionDate = $executionDate;
0 ignored issues
show
Bug introduced by
The property executionDate is declared read-only in Kaliop\eZMigrationBundle\API\Value\Migration.
Loading history...
20
        $this->status = $status;
0 ignored issues
show
Bug introduced by
The property status is declared read-only in Kaliop\eZMigrationBundle\API\Value\Migration.
Loading history...
21
        $this->executionError = $executionError;
0 ignored issues
show
Bug introduced by
The property executionError is declared read-only in Kaliop\eZMigrationBundle\API\Value\Migration.
Loading history...
22
        $this->signalName = $signalName;
0 ignored issues
show
Bug introduced by
The property signalName is declared read-only in Kaliop\eZWorkflowEngineBundle\API\Value\Workflow.
Loading history...
23
    }
24
}
25