Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
22.22% covered (danger)
22.22%
2 / 9
22.22% covered (danger)
22.22%
2 / 9
CRAP
0.00% covered (danger)
0.00%
0 / 1
Delay
22.22% covered (danger)
22.22%
2 / 9
22.22% covered (danger)
22.22%
2 / 9
47.11
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getNumber
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setNumber
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPeriod
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setPeriod
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 isOtherDelay
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setOtherDelay
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getComment
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setComment
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3/**
4 * This file is part of the MADIS - RGPD Management application.
5 *
6 * @copyright Copyright (c) 2018-2019 Soluris - Solutions Numériques Territoriales Innovantes
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22declare(strict_types=1);
23
24namespace App\Domain\Registry\Model\Embeddable;
25
26class Delay
27{
28    /**
29     * @var int|null
30     */
31    private $number;
32
33    /**
34     * @var string|null
35     */
36    private $period;
37
38    /**
39     * @var bool
40     */
41    private $otherDelay;
42
43    /**
44     * @var string|null
45     */
46    private $comment;
47
48    public function __construct()
49    {
50        $this->otherDelay = false;
51    }
52
53    public function getNumber(): ?int
54    {
55        return $this->number;
56    }
57
58    public function setNumber(?int $number): void
59    {
60        $this->number = $number;
61    }
62
63    public function getPeriod(): ?string
64    {
65        return $this->period;
66    }
67
68    public function setPeriod(?string $period): void
69    {
70        $this->period = $period;
71    }
72
73    public function isOtherDelay(): bool
74    {
75        return $this->otherDelay;
76    }
77
78    public function setOtherDelay(bool $otherDelay): void
79    {
80        $this->otherDelay = $otherDelay;
81    }
82
83    public function getComment(): ?string
84    {
85        return $this->comment;
86    }
87
88    public function setComment(?string $comment): void
89    {
90        $this->comment = $comment;
91    }
92}