Passed
Push — develop ( a409ac...cc5095 )
by BENARD
17:58 queued 05:19
created

UpdateTable::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VideoGamesRecords\DwhBundle\Scheduler\Message;
6
7
class UpdateTable
8
{
9
    private string $target;
10
11
    private string $function;
12
13
    public function __construct(string $target, string $function = 'process')
14
    {
15
        $this->target = $target;
16
        $this->function = $function;
17
    }
18
19
    public function getTarget(): string
20
    {
21
        return $this->target;
22
    }
23
24
    public function setTarget(string $target): void
25
    {
26
        $this->target = $target;
27
    }
28
29
    public function getFunction(): string
30
    {
31
        return $this->function;
32
    }
33
34
    public function setFunction(string $function): void
35
    {
36
        $this->function = $function;
37
    }
38
}
39