Passed
Push — master ( 1e00a2...f52220 )
by Angel Fernando Quiroz
07:44 queued 14s
created

XApiActivityState::setStateId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
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 1
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Chamilo\CoreBundle\Entity;
4
5
use Chamilo\CoreBundle\Repository\XApiActivityStateRepository;
6
use Doctrine\ORM\Mapping as ORM;
7
8
#[ORM\Entity(repositoryClass: XApiActivityStateRepository::class)]
9
class XApiActivityState
10
{
11
    #[ORM\Id]
12
    #[ORM\GeneratedValue]
13
    #[ORM\Column]
14
    private ?int $id = null;
15
16
    #[ORM\Column(length: 255)]
17
    private ?string $stateId = null;
18
19
    #[ORM\Column(length: 255)]
20
    private ?string $activityId = null;
21
22
    #[ORM\Column]
23
    private array $agent = [];
24
25
    #[ORM\Column]
26
    private array $documentData = [];
27
28
    public function getId(): ?int
29
    {
30
        return $this->id;
31
    }
32
33
    public function getStateId(): ?string
34
    {
35
        return $this->stateId;
36
    }
37
38
    public function setStateId(string $stateId): static
39
    {
40
        $this->stateId = $stateId;
41
42
        return $this;
43
    }
44
45
    public function getActivityId(): ?string
46
    {
47
        return $this->activityId;
48
    }
49
50
    public function setActivityId(string $activityId): static
51
    {
52
        $this->activityId = $activityId;
53
54
        return $this;
55
    }
56
57
    public function getAgent(): array
58
    {
59
        return $this->agent;
60
    }
61
62
    public function setAgent(array $agent): static
63
    {
64
        $this->agent = $agent;
65
66
        return $this;
67
    }
68
69
    public function getDocumentData(): array
70
    {
71
        return $this->documentData;
72
    }
73
74
    public function setDocumentData(array $documentData): static
75
    {
76
        $this->documentData = $documentData;
77
78
        return $this;
79
    }
80
}
81