Passed
Pull Request — 1.11.x (#5934)
by Angel Fernando Quiroz
10:15
created

AzureSyncState::setValue()   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
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\PluginBundle\Entity\AzureActiveDirectory;
6
7
use Chamilo\CoreBundle\Traits\TimestampableTypedEntity;
8
use Doctrine\ORM\Mapping as ORM;
9
10
/**
11
 * @package Chamilo\PluginBundle\Entity\AzureActiveDirectory
12
 *
13
 * @ORM\Table(name="azure_ad_sync_state")
14
 * @ORM\Entity()
15
 */
16
class AzureSyncState
17
{
18
    use TimestampableTypedEntity;
19
20
    public const USERS_DATALINK = 'users_datalink';
21
    public const USERGROUPS_DATALINK = 'usergroups_datalink';
22
23
    /**
24
     * @var int
25
     *
26
     * @ORM\Column(name="id", type="integer")
27
     * @ORM\Id()
28
     * @ORM\GeneratedValue()
29
     */
30
    private int $id = 0;
31
32
    /**
33
     * @var string
34
     *
35
     * @ORM\Column(name="title", type="string")
36
     */
37
    private string $title;
38
39
    /**
40
     * @var string
41
     *
42
     * @ORM\Column(name="value", type="text")
43
     */
44
    private string $value;
45
46
    public function getId(): int
47
    {
48
        return $this->id;
49
    }
50
51
    public function getTitle(): string
52
    {
53
        return $this->title;
54
    }
55
56
    public function setTitle(string $title): AzureSyncState
57
    {
58
        $this->title = $title;
59
60
        return $this;
61
    }
62
63
    public function getValue(): string
64
    {
65
        return $this->value;
66
    }
67
68
    public function setValue(string $value): AzureSyncState
69
    {
70
        $this->value = $value;
71
72
        return $this;
73
    }
74
}
75