Passed
Pull Request — develop (#166)
by Laurent
01:46
created

Settings::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the G.L.S.R. Apps package.
7
 *
8
 * (c) Dev-Int Création <[email protected]>.
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Administration\Infrastructure\Persistence\DoctrineOrm\Entities;
15
16
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
Bug introduced by
The type Doctrine\ORM\Mapping was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
18
/**
19
 * @ORM\Table(name="settings")
20
 * @ORM\Entity(repositoryClass="Administration\Infrastructure\Persistence\DoctrineOrm\Repositories\DoctrineSettingsRepository")
21
 */
22
class Settings
23
{
24
    /**
25
     * @ORM\Id
26
     * @ORM\Column(type="guid")
27
     * @ORM\GeneratedValue(strategy="NONE")
28
     */
29
    private string $uuid;
30
31
    /**
32
     * @ORM\Column(type="string", nullable=false)
33
     */
34
    private string $locale;
35
36
    /**
37
     * @ORM\Column(type="string", nullable=false)
38
     */
39
    private string $currency;
40
41
    public function __construct(string $uuid, string $locale, string $currency)
42
    {
43
        $this->uuid = $uuid;
44
        $this->locale = $locale;
45
        $this->currency = $currency;
46
    }
47
48
    public function getUuid(): string
49
    {
50
        return $this->uuid;
51
    }
52
53
    public function setUuid(string $uuid): self
54
    {
55
        $this->uuid = $uuid;
56
57
        return $this;
58
    }
59
60
    public function getLocale(): string
61
    {
62
        return $this->locale;
63
    }
64
65
    public function setLocale(string $locale): self
66
    {
67
        $this->locale = $locale;
68
69
        return $this;
70
    }
71
72
    public function getCurrency(): string
73
    {
74
        return $this->currency;
75
    }
76
77
    public function setCurrency(string $currency): self
78
    {
79
        $this->currency = $currency;
80
81
        return $this;
82
    }
83
}
84