Passed
Push — master ( 7f0556...4007d6 )
by Sam
12:29
created

Event::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Model;
6
7
use Application\Traits\HasDate;
8
use Application\Traits\HasName;
9
use Doctrine\ORM\Mapping as ORM;
10
11
/**
12
 * A news
13
 *
14
 * @ORM\Entity(repositoryClass="Application\Repository\EventRepository")
15
 */
16
class Event extends AbstractModel
17
{
18
    private const IMAGE_PATH = 'htdocs/news/';
19
20
    use HasName;
21
    use HasDate;
22
23
    /**
24
     * @var string
25
     * @ORM\Column(type="string", length=191)
26
     */
27
    private $place;
28
29
    /**
30
     * Set place
31
     *
32
     * @param string $place
33
     */
34
    public function setPlace($place): void
35
    {
36
        $this->place = $place;
37
    }
38
39
    /**
40
     * Get place
41
     *
42
     * @return string
43
     */
44
    public function getPlace(): string
45
    {
46
        return (string) $this->place;
47
    }
48
49
    /**
50
     * @var string
51
     * @ORM\Column(type="string", length=191)
52
     */
53
    private $type;
54
55
    /**
56
     * Set type
57
     *
58
     * @param string $type
59
     */
60
    public function setType($type): void
61
    {
62
        $this->type = $type;
63
    }
64
65
    /**
66
     * Get type
67
     *
68
     * @return string
69
     */
70
    public function getType(): string
71
    {
72
        return (string) $this->type;
73
    }
74
}
75