Skip to content
Snippets Groups Projects
Select Git revision
  • 979ad31d5b8584f32710df5c0141d84b6b696c41
  • master default
2 results

LeagueOnDevice.php

Blame
  • LeagueOnDevice.php 1.99 KiB
    <?php
    /**
     * Created by PhpStorm.
     * User: jeremyguiselin
     * Date: 19/12/2016
     * Time: 10:36
     */
    
    namespace BackendBundle\Entity;
    
    use Doctrine\ORM\Mapping as ORM;
    
    /**
     * LeagueOnDevice
     *
     * @ORM\Table(name="league_on_device")
     * @ORM\Entity(repositoryClass="BackendBundle\Repository\LeagueOnDeviceRepository")
     */
    class LeagueOnDevice
    {
    
        const STATUS_UNLOCK = 'unlock';
        const STATUS_LOCK = 'lock';
    
        /**
         * @var int
         *
         * @ORM\Column(name="id", type="integer")
         * @ORM\Id
         * @ORM\GeneratedValue(strategy="AUTO")
         */
        private $id;
    
        /**
         * @var Device
         *
         * @ORM\ManyToOne(targetEntity="BackendBundle\Entity\Device")
         * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
         */
        private $device;
    
        /**
         * @var League
         *
         * @ORM\ManyToOne(targetEntity="BackendBundle\Entity\League")
         * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
         */
        private $league;
    
        /**
         * @var string
         *
         * @ORM\Column(name="status", type="string", length=255)
         */
        private $status = self::STATUS_LOCK;
    
        /**
         * @return int
         */
        public function getId()
        {
            return $this->id;
        }
    
        /**
         * @param int $id
         */
        public function setId($id)
        {
            $this->id = $id;
        }
    
        /**
         * @return Device
         */
        public function getDevice()
        {
            return $this->device;
        }
    
        /**
         * @param Device $device
         */
        public function setDevice($device)
        {
            $this->device = $device;
        }
    
        /**
         * @return League
         */
        public function getLeague()
        {
            return $this->league;
        }
    
        /**
         * @param League $league
         */
        public function setLeague($league)
        {
            $this->league = $league;
        }
    
        /**
         * @return string
         */
        public function getStatus()
        {
            return $this->status;
        }
    
        /**
         * @param string $status
         */
        public function setStatus($status)
        {
            $this->status = $status;
        }
    }