Test Setup Failed
Push — dependabot/composer/thomaspark... ( 7e28e7...04472a )
by
unknown
37:44 queued 28:26
created

HookEntityTrait::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zikula\Bundle\HookBundle\Entity;
15
16
/**
17
 * @deprecated remove at Core 4.0.0
18
 */
19
trait HookEntityTrait
20
{
21
    public function getId(): int
22
    {
23
        return $this->id;
24
    }
25
26
    public function setId(int $id): self
27
    {
28
        $this->id = $id;
0 ignored issues
show
Bug Best Practice introduced by
The property id does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
29
30
        return $this;
31
    }
32
33
    public function getSowner(): string
34
    {
35
        return $this->sowner;
36
    }
37
38
    public function setSowner(string $sowner): self
39
    {
40
        $this->sowner = $sowner;
0 ignored issues
show
Bug Best Practice introduced by
The property sowner does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
41
42
        return $this;
43
    }
44
45
    public function getPowner(): string
46
    {
47
        return $this->powner;
48
    }
49
50
    public function setPowner(string $powner): self
51
    {
52
        $this->powner = $powner;
0 ignored issues
show
Bug Best Practice introduced by
The property powner does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
53
54
        return $this;
55
    }
56
57
    public function getSareaid(): string
58
    {
59
        return $this->sareaid;
60
    }
61
62
    public function setSareaid(string $subscriberAreaId): self
63
    {
64
        $this->sareaid = $subscriberAreaId;
0 ignored issues
show
Bug Best Practice introduced by
The property sareaid does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
65
66
        return $this;
67
    }
68
69
    public function getPareaid(): string
70
    {
71
        return $this->pareaid;
72
    }
73
74
    public function setPareaid(string $providerAreaId): self
75
    {
76
        $this->pareaid = $providerAreaId;
0 ignored issues
show
Bug Best Practice introduced by
The property pareaid does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
77
78
        return $this;
79
    }
80
}
81