Passed
Push — master ( f7c169...528c62 )
by Angel Fernando Quiroz
08:03 queued 15s
created

XApiExtensions   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getIdentifier() 0 3 1
A setExtensions() 0 5 1
A getExtensions() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\Entity;
8
9
use Chamilo\CoreBundle\Repository\XApiExtensionsRepository;
10
use Doctrine\ORM\Mapping as ORM;
11
12
#[ORM\Entity(repositoryClass: XApiExtensionsRepository::class)]
13
class XApiExtensions
14
{
15
    #[ORM\Id]
16
    #[ORM\GeneratedValue]
17
    #[ORM\Column]
18
    private ?int $identifier = null;
19
20
    #[ORM\Column]
21
    private array $extensions = [];
22
23
    public function getIdentifier(): ?int
24
    {
25
        return $this->identifier;
26
    }
27
28
    public function getExtensions(): array
29
    {
30
        return $this->extensions;
31
    }
32
33
    public function setExtensions(array $extensions): static
34
    {
35
        $this->extensions = $extensions;
36
37
        return $this;
38
    }
39
}
40