src/mako/gatekeeper/repositories/user/UserRepository.php
public function getById(int $id)
	{
		return $this->setAuthorizer($this->getModel()->where('id', '=', $id)->first());
	}
public function getById(int $id)
	{
		return $this->setAuthorizer($this->getModel()->where('id', '=', $id)->first());
	}
public function getById ( int $ id ) { return $ this -> setAuthorizer ( $ this -> getModel ( ) -> where ( 'id' , '=' , $ id ) -> first ( ) ) ; }
Fetches a user by its id.

@param  int                                      $id User id
@return \mako\gatekeeper\entities\user\User|bool
Fetches a user by its id .