Owl\Repositories\UserRepositoryInterface::getById PHP Method

getById() public method

Get a user by user id.
public getById ( integer $id ) : Illuminate\Database\Eloquent\Model
$id integer
return Illuminate\Database\Eloquent\Model
    public function getById($id);

Usage Example

Example #1
0
 /**
  * Get a user by user id.
  *
  * @param int  $id
  * @return \stdclass
  */
 public function getById($id)
 {
     return $this->userRepo->getById($id);
 }