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

HookEntityTrait   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 60
rs 10
c 0
b 0
f 0
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getSowner() 0 3 1
A getSareaid() 0 3 1
A setPareaid() 0 5 1
A getPareaid() 0 3 1
A setSowner() 0 5 1
A setPowner() 0 5 1
A getPowner() 0 3 1
A setId() 0 5 1
A setSareaid() 0 5 1
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