-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathAccessToken.php
43 lines (38 loc) · 1.03 KB
/
AccessToken.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* This file is part of the authbucket/oauth2-symfony-bundle package.
*
* (c) Wong Hoi Sing Edison <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity;
use AuthBucket\Bundle\OAuth2Bundle\Entity\AccessToken as AbstractAccessToken;
use Doctrine\ORM\Mapping as ORM;
/**
* AccessToken.
*
* @ORM\Table(name="authbucket_oauth2_access_token", uniqueConstraints={@ORM\UniqueConstraint(columns={"access_token"})})
* @ORM\Entity(repositoryClass="AuthBucket\Bundle\OAuth2Bundle\Tests\TestBundle\Entity\AccessTokenRepository")
*/
class AccessToken extends AbstractAccessToken
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
}