src/Entity/Gos/UserDevices.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\UserDevicesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=UserDevicesRepository::class)
  7.  */
  8. class UserDevices
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="text")
  18.      */
  19.     private $agent;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $ip;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="userDevices")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $user;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=PortalSettings::class)
  31.      * @ORM\JoinColumn(nullable=true)
  32.      */
  33.     private $portal;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getAgent(): ?string
  39.     {
  40.         return $this->agent;
  41.     }
  42.     public function setAgent(string $agent): self
  43.     {
  44.         $this->agent $agent;
  45.         return $this;
  46.     }
  47.     public function getIp(): ?string
  48.     {
  49.         return $this->ip;
  50.     }
  51.     public function setIp(string $ip): self
  52.     {
  53.         $this->ip $ip;
  54.         return $this;
  55.     }
  56.     public function getUser(): ?User
  57.     {
  58.         return $this->user;
  59.     }
  60.     public function setUser(?User $user): self
  61.     {
  62.         $this->user $user;
  63.         return $this;
  64.     }
  65.     public function getPortal(): ?PortalSettings
  66.     {
  67.         return $this->portal;
  68.     }
  69.     public function setPortal(?PortalSettings $portal): self
  70.     {
  71.         $this->portal $portal;
  72.         return $this;
  73.     }
  74. }