PHP Interface REBELinBLUE\Deployer\Contracts\Repositories\UserRepositoryInterface

Show file Open project: rebelinblue/deployer Interface Usage Examples

Public Methods

Method Description
create ( array $fields ) : Model
deleteById ( integer $model_id ) : boolean
findByEmailToken ( string $token ) : Model | null
getAll ( ) : Illuminate\Database\Eloquent\Collection
updateById ( array $fields, integer $model_id ) : Model

Method Details

create() public method

public create ( array $fields ) : Model
$fields array
return Illuminate\Database\Eloquent\Model

deleteById() public method

public deleteById ( integer $model_id ) : boolean
$model_id integer
return boolean

findByEmailToken() public method

public findByEmailToken ( string $token ) : Model | null
$token string
return Illuminate\Database\Eloquent\Model | null

getAll() public method

public getAll ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection

updateById() public method

public updateById ( array $fields, integer $model_id ) : Model
$fields array
$model_id integer
return Illuminate\Database\Eloquent\Model