<?php
namespace App\Entity;
use App\Repository\TokensRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TokensRepository::class)]
class Tokens
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $token = null;
#[ORM\ManyToOne(inversedBy: 'tokens')]
#[ORM\JoinColumn(nullable: false)]
private ?Apps $app = null;
public function getId(): ?int
{
return $this->id;
}
public function getToken(): ?string
{
return $this->token;
}
public function setToken(string $token): self
{
$this->token = $token;
return $this;
}
public function getApp(): ?Apps
{
return $this->app;
}
public function setApp(?Apps $app): self
{
$this->app = $app;
return $this;
}
}