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

XApiSharedStatement   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 23
c 1
b 0
f 0
dl 0
loc 57
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setSent() 0 5 1
A setStatement() 0 5 1
A setUuid() 0 5 1
A getUuid() 0 3 1
A getStatement() 0 3 1
A isSent() 0 3 1
A getId() 0 3 1
1
<?php
2
3
namespace Chamilo\CoreBundle\Entity;
4
5
use Chamilo\CoreBundle\Repository\XApiSharedStatementRepository;
6
use Doctrine\DBAL\Types\Types;
7
use Doctrine\ORM\Mapping as ORM;
8
use Symfony\Component\Uid\Uuid;
9
10
#[ORM\Entity(repositoryClass: XApiSharedStatementRepository::class)]
11
#[ORM\Index(columns: ['uuid'], name: 'idx_uuid')]
12
class XApiSharedStatement
13
{
14
    #[ORM\Id]
15
    #[ORM\GeneratedValue]
16
    #[ORM\Column]
17
    private ?int $id = null;
18
19
    #[ORM\Column(type: 'uuid', nullable: true)]
20
    private ?Uuid $uuid = null;
21
22
    #[ORM\Column]
23
    private array $statement = [];
24
25
    #[ORM\Column]
26
    private ?bool $sent = null;
27
28
    public function getId(): ?int
29
    {
30
        return $this->id;
31
    }
32
33
    public function getUuid(): ?Uuid
34
    {
35
        return $this->uuid;
36
    }
37
38
    public function setUuid(?Uuid $uuid): static
39
    {
40
        $this->uuid = $uuid;
41
42
        return $this;
43
    }
44
45
    public function getStatement(): array
46
    {
47
        return $this->statement;
48
    }
49
50
    public function setStatement(array $statement): static
51
    {
52
        $this->statement = $statement;
53
54
        return $this;
55
    }
56
57
    public function isSent(): ?bool
58
    {
59
        return $this->sent;
60
    }
61
62
    public function setSent(bool $sent): static
63
    {
64
        $this->sent = $sent;
65
66
        return $this;
67
    }
68
}
69