# AbstractTokenEntity

Implements \NPS\Entity\IEntity

Abstract token entity

author | Lukas Korinek
ORM\InheritanceType | ("SINGLE_TABLE")
ORM\DiscriminatorColumn | (name="type", type="string")
ORM\DiscriminatorMap | ({"user_activation" = "UserActivationTokenEntity", "password_reset" = "PasswordResetTokenEntity"})
ORM\Entity |
ORM\Table | (name="`token`", indexes={@ORM\Index(name="hash_index", columns={"hash"})})
package | Default

### Methods

## __construct

    __construct()

## Gets the ID

    getId() : integer

inherited

### Response

`integer`

### Properties

## dateCreated

    dateCreated : \DateTime

ORM\Column | (type="datetime", name="date_created", length=250, nullable=false)
var |

### Type(s)

`\DateTime`

## used

    used : boolean

ORM\Column | (type="boolean", name="used", nullable=false)
var |

### Type(s)

`boolean`

## hash

    hash : string

ORM\Column | (type="string", name="hash", length=150)
var |

### Type(s)

`string`

## id

    id :

inherited

ORM\Id |
ORM\Column | (type="integer", name="id")
ORM\GeneratedValue | (strategy="AUTO")

### Type(s)

``