# AccessGrantEntity

Access grant token entity Decides whether a particular user has access to a knowledge base identified by its bind id

author | Lukas Korinek
ORM\Entity |
ORM\Table | (name="`access_grant`")
package | Default

### Methods

## __construct

    __construct(\NPS\Entity\UserEntity $user,  $bindId)

### Arguments

#### $user

`\NPS\Entity\UserEntity`

#### $bindId

``

## Gets the ID

    getId() : integer

inherited

### Response

`integer`

### Properties

## User for which the grant is issued

    user : \NPS\Entity\UserEntity

ORM\ManyToOne | (targetEntity="UserEntity", inversedBy="grants")
ORM\JoinColumn | (name="user_id", referencedColumnName="id", nullable=true)
var |

### Type(s)

`\NPS\Entity\UserEntity`

## Knowledge base bind id

    bindId : integer

ORM\Column | (name="bind_id", type="integer", nullable=false)
var |

### Type(s)

`integer`

## id

    id :

inherited

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

### Type(s)

``