Documentation

DeleteUser
in package

Table of Contents

Properties

$userRepository  : UserRepositoryInterface

Methods

__construct()  : mixed
execute()  : array{success: bool, error?: string}
Delete a user.

Properties

Methods

execute()

Delete a user.

public execute(int $userId, int $currentAdminId) : array{success: bool, error?: string}
Parameters
$userId : int

The user to delete

$currentAdminId : int

The admin performing the deletion

Return values
array{success: bool, error?: string}

        
On this page

Search results