mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
Moved entities mappings from annotations to external config files
This commit is contained in:
@@ -4,36 +4,18 @@ declare(strict_types=1);
|
||||
namespace Shlinkio\Shlink\Rest\Entity;
|
||||
|
||||
use Cake\Chronos\Chronos;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Shlinkio\Shlink\Common\Entity\AbstractEntity;
|
||||
use Shlinkio\Shlink\Common\Util\StringUtilsTrait;
|
||||
|
||||
/**
|
||||
* Class ApiKey
|
||||
* @author Shlink
|
||||
* @link http://shlink.io
|
||||
*
|
||||
* @ORM\Entity()
|
||||
* @ORM\Table(name="api_keys")
|
||||
*/
|
||||
class ApiKey extends AbstractEntity
|
||||
{
|
||||
use StringUtilsTrait;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @ORM\Column(name="`key`", nullable=false, unique=true)
|
||||
*/
|
||||
/** @var string */
|
||||
private $key;
|
||||
/**
|
||||
* @var Chronos|null
|
||||
* @ORM\Column(name="expiration_date", nullable=true, type="chronos_datetime")
|
||||
*/
|
||||
/** @var Chronos|null */
|
||||
private $expirationDate;
|
||||
/**
|
||||
* @var bool
|
||||
* @ORM\Column(type="boolean")
|
||||
*/
|
||||
/** @var bool */
|
||||
private $enabled;
|
||||
|
||||
public function __construct(?Chronos $expirationDate = null)
|
||||
|
||||
Reference in New Issue
Block a user