wow-apps/symfony-proxybonanza

View on GitHub
Entity/AuthIps.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * This file is part of the wow-apps/symfony-proxybonanza project
 * https://github.com/wow-apps/symfony-proxybonanza
 *
 * (c) 2017 WoW-Apps
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace WowApps\ProxybonanzaBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Class AuthIps
 * @ORM\Table(
 *     name="proxybonanza_auth_ips",
 *     options={"collate"="utf8_unicode_ci", "charset"="utf8", "engine"="InnoDB"}
 * )
 * @ORM\Entity(repositoryClass="WowApps\ProxybonanzaBundle\Repository\AuthIpsRepository")
 * @author Alexey Samara <lion.samara@gmail.com>
 * @package wow-apps/symfony-proxybonanza
 */
class AuthIps
{
    const TABLE_NAME = 'proxybonanza_auth_ips';

    /**
     * @var integer
     * @ORM\Column(name="authips_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer
     * @ORM\Column(name="authips_plan", type="integer", nullable=false)
     */
    private $plan;

    /**
     * @var string
     * @ORM\Column(name="authips_ip", type="string", nullable=false)
     */
    private $ip;

    /**
     * @return int
     */
    public function getId(): int
    {
        return $this->id;
    }

    /**
     * @param int $id
     * @return AuthIps
     */
    public function setId(int $id): AuthIps
    {
        $this->id = $id;
        return $this;
    }

    /**
     * @return int
     */
    public function getPlan(): int
    {
        return $this->plan;
    }

    /**
     * @param int $plan
     * @return AuthIps
     */
    public function setPlan(int $plan): AuthIps
    {
        $this->plan = $plan;
        return $this;
    }

    /**
     * @return string
     */
    public function getIp(): string
    {
        return $this->ip;
    }

    /**
     * @param string $ip
     * @return AuthIps
     */
    public function setIp(string $ip): AuthIps
    {
        $this->ip = $ip;
        return $this;
    }
}