Passed
Push — master ( 745178...3deda8 )
by Alexey
03:44
created

AuthIps::getPlan()   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
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the wow-apps/symfony-proxybonanza project
4
 * https://github.com/wow-apps/symfony-proxybonanza
5
 *
6
 * (c) 2017 WoW-Apps
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WowApps\ProxybonanzaBundle\Entity;
13
14
use Doctrine\ORM\Mapping as ORM;
15
16
/**
17
 * Class AuthIps
18
 * @ORM\Table(
19
 *     name="proxybonanza_auth_ips",
20
 *     options={"collate"="utf8_unicode_ci", "charset"="utf8", "engine"="InnoDB"}
21
 * )
22
 * @ORM\Entity(repositoryClass="WowApps\ProxybonanzaBundle\Repository\AuthIpsRepository")
23
 * @author Alexey Samara <[email protected]>
24
 * @package wow-apps/symfony-proxybonanza
25
 */
26
class AuthIps
27
{
28
    const TABLE_NAME = 'proxybonanza_auth_ips';
29
30
    /**
31
     * @var integer
32
     * @ORM\Column(name="authips_id", type="integer")
33
     * @ORM\Id
34
     * @ORM\GeneratedValue(strategy="IDENTITY")
35
     */
36
    private $id;
37
38
    /**
39
     * @var integer
40
     * @ORM\Column(name="authips_plan", type="integer", nullable=false)
41
     */
42
    private $plan;
43
44
    /**
45
     * @var string
46
     * @ORM\Column(name="authips_ip", type="string", nullable=false)
47
     */
48
    private $ip;
49
50
    /**
51
     * @return int
52
     */
53
    public function getId(): int
54
    {
55
        return $this->id;
56
    }
57
58
    /**
59
     * @param int $id
60
     * @return AuthIps
61
     */
62
    public function setId(int $id): AuthIps
63
    {
64
        $this->id = $id;
65
        return $this;
66
    }
67
68
    /**
69
     * @return int
70
     */
71
    public function getPlan(): int
72
    {
73
        return $this->plan;
74
    }
75
76
    /**
77
     * @param int $plan
78
     * @return AuthIps
79
     */
80
    public function setPlan(int $plan): AuthIps
81
    {
82
        $this->plan = $plan;
83
        return $this;
84
    }
85
86
    /**
87
     * @return string
88
     */
89
    public function getIp(): string
90
    {
91
        return $this->ip;
92
    }
93
94
    /**
95
     * @param string $ip
96
     * @return AuthIps
97
     */
98
    public function setIp(string $ip): AuthIps
99
    {
100
        $this->ip = $ip;
101
        return $this;
102
    }
103
}
104