Passed
Push — master ( 10f591...07b5ce )
by
unknown
22:43
created

Ownership   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 43
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getOwnerGroupId() 0 4 1
A setOwnerGroupId() 0 6 1
A isVisible() 0 4 1
A setVisibility() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MovingImage\Client\VMPro\Entity;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
10
class Ownership
11
{
12
    /**
13
     * @Type("integer")
14
     * @SerializedName("ownerGroupId")
15
     *
16
     * @var int
17
     */
18
    private $ownerGroupId;
19
20
    /**
21
     * @Type("boolean")
22
     *
23
     * @var bool
24
     */
25
    private $visibility;
26
27
    public function getOwnerGroupId(): int
28
    {
29
        return $this->ownerGroupId;
30
    }
31
32
    public function setOwnerGroupId(int $ownerGroupId): Ownership
33
    {
34
        $this->ownerGroupId = $ownerGroupId;
35
36
        return $this;
37
    }
38
39
    public function isVisible(): bool
40
    {
41
        return $this->visibility;
42
    }
43
44
    public function setVisibility(bool $visibility): Ownership
45
    {
46
        $this->visibility = $visibility;
47
48
        return $this;
49
    }
50
51
52
}
53