# UserActivationToken

Extends \NPS\Model\AbstractToken

Represents a user account activation token model object

author | Lukas Korinek
package | Default

### Methods

## __construct

    __construct(\NPS\Entity\AbstractTokenEntity $entity, integer $ttl)

inherited

### Arguments

#### $entity

`\NPS\Entity\AbstractTokenEntity`

#### $ttl

`integer`

Token time to live in seconds

## Gets the entity of the object

    getEntity() : \NPS\Entity\IEntity

inherited

inheritDoc |

### Response

`\NPS\Entity\IEntity`

## Gets the id of the object

    getId() : integer

inherited

inheritDoc |

### Response

`integer`

## getUser

    getUser()

## Checks if the token has been used already

    isUsed() : boolean

inherited

### Response

`boolean`

## Checks if the token is valid

    isValid() : boolean

inherited

### Response

`boolean`

## Marks the reset token as used

    markAsUsed()

inherited

### Properties

## user

    user : \NPS\Model\User

var |

### Type(s)

`\NPS\Model\User`

## entity

    entity : \NPS\Entity\AbstractTokenEntity

inherited

var |

### Type(s)

`\NPS\Entity\AbstractTokenEntity`

## ttl

    ttl : integer

inherited

var |

### Type(s)

`integer`