# UserQueryRepository

Implements \NPS\Repository\IObjectRepository

User query repository class

author | Lukas Korinek
package | Default

### Methods

## __construct

    __construct(\Doctrine\ORM\EntityManagerInterface $em, \NPS\Factory\UserQueryFactory $factory)

### Arguments

#### $em

`\Doctrine\ORM\EntityManagerInterface`

#### $factory

`\NPS\Factory\UserQueryFactory`

## Lists user queries with the desired type

    getAll(integer $type, integer $limit = 50, integer $offset) : array

### Arguments

#### $type

`integer`

Requested user query type

#### $limit

`integer`

#### $offset

`integer`

### Response

`array`

## Gets an object by its id

    getById(integer $id) : mixed

inheritDoc |

### Arguments

#### $id

`integer`

### Response

`mixed`

### Constants

## USER_QUERY_ERROR_REPORTING

    USER_QUERY_ERROR_REPORTING

## USER_QUERY_QUESTION

    USER_QUERY_QUESTION

### Properties

## errorReportingEntityRepository

    errorReportingEntityRepository : \Doctrine\ORM\EntityRepository

var |

### Type(s)

`\Doctrine\ORM\EntityRepository`

## userQuestionEntityRepository

    userQuestionEntityRepository : \Doctrine\ORM\EntityRepository

var |

### Type(s)

`\Doctrine\ORM\EntityRepository`

## entityRepository

    entityRepository : \Doctrine\ORM\EntityRepository

var |

### Type(s)

`\Doctrine\ORM\EntityRepository`

## factory

    factory : \NPS\Factory\UserQueryFactory

var |

### Type(s)

`\NPS\Factory\UserQueryFactory`