PHP Class Owl\Repositories\Fluent\UserRoleRepository

Inheritance: extends AbstractFluent, implements Owl\Repositories\UserRoleRepositoryInterface
Show file Open project: owl/owl Class Usage Examples

Protected Properties

Property Type Description
$table

Public Methods

Method Description
getAll ( ) : array Get all user role data.
getByUserId ( integer $userId ) : stdClass Get record by specified user ID.
getTableName ( ) : string Get a table name.

Method Details

getAll() public method

Get all user role data.
public getAll ( ) : array
return array

getByUserId() public method

Get record by specified user ID.
public getByUserId ( integer $userId ) : stdClass
$userId integer
return stdClass | null

getTableName() public method

Get a table name.
public getTableName ( ) : string
return string

Property Details

$table protected property

protected $table