<?php
declare(strict_types=1);
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*
* @ORM\Table(name="ps_token")
*
* @ORM\Entity(repositoryClass="App\Repository\System\TokenRepository")
*/
class Token
{
/**
* @ORM\Id
*
* @ORM\Column(type="integer", name="id_token")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private int $id;
/**
* @ORM\Column(type="integer", name="id_customer")
*/
private int $customerId;
/**
* @ORM\Column(type="string", name="token")
*/
private string $token;
/**
* @ORM\Column(type="boolean", name="used")
*/
private bool $used;
public function getId(): int
{
return $this->id;
}
public function getCustomerId(): int
{
return $this->customerId;
}
public function setCustomerId(int $customerId): Token
{
$this->customerId = $customerId;
return $this;
}
public function getToken(): string
{
return $this->token;
}
public function setToken(string $token): Token
{
$this->token = $token;
return $this;
}
public function isUsed(): bool
{
return $this->used;
}
public function setUsed(bool $used): Token
{
$this->used = $used;
return $this;
}
}