Api::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Tarioch\EveapiFetcherBundle\Entity;
3
4
use Doctrine\ORM\Mapping as ORM;
5
6
/**
7
 * @ORM\Entity(repositoryClass="ApiRepository", readOnly=true)
8
 * @ORM\Table(name="api")
9
 */
10
class Api
11
{
12
    /**
13
     * @ORM\Id @ORM\GeneratedValue @ORM\Column(name="apiID", type="integer")
14
     */
15
    private $apiId;
16
17
    /**
18
     * @ORM\Column(name="mask", type="integer", nullable=true)
19
     */
20
    private $mask;
21
22
    /**
23
     * @ORM\Column(name="worker", type="string")
24
     */
25
    private $worker;
26
27
    /**
28
     * @ORM\Column(name="section", type="string")
29
     */
30
    private $section;
31
32
    /**
33
     * @ORM\Column(name="name", type="string")
34
     */
35
    private $name;
36
37
    /**
38
     * @ORM\Column(name="callInterval", type="integer", options={"default"=0})
39
     */
40
    private $callInterval;
41
42
    public function __construct($worker, $section, $name, $callInterval, $mask = null)
43
    {
44
        $this->worker = $worker;
45
        $this->section = $section;
46
        $this->name = $name;
47
        $this->callInterval = $callInterval;
48
        $this->mask = $mask;
49
    }
50
51
    public function getApiId()
52
    {
53
        return $this->apiId;
54
    }
55
56
    public function getMask()
57
    {
58
        return $this->mask;
59
    }
60
61
    public function getWorker()
62
    {
63
        return $this->worker;
64
    }
65
66
    public function getSection()
67
    {
68
        return $this->section;
69
    }
70
71
    public function getName()
72
    {
73
        return $this->name;
74
    }
75
76
    public function getCallInterval()
77
    {
78
        return $this->callInterval;
79
    }
80
}
81