for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Spomky-Labs
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace SpomkyLabs\JoseBundle\Model;
class Jot implements JotInterface
{
/**
* @var string
protected $data = '';
* @var int
protected $expires_at;
protected $jti;
public function __construct()
$this->jti = base_convert(hash('sha512', uniqid(mt_rand(), true)), 16, 36);
}
* {@inheritdoc}
public function setData($data)
$this->data = $data;
public function getData()
return $this->data;
public function getJti()
return $this->jti;
public function getExpiresAt()
return $this->expires_at;
public function setExpiresAt($expires_at)
$this->expires_at = $expires_at;