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

XApiExtensions::getExtensions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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