Neuron-PHP

Deleter
in package
implements IUserDeleter

User deletion service.

Handles safe deletion of users.

Table of Contents

Interfaces

IUserDeleter
User deletion service interface

Properties

$_eventEmitter  : Emitter|null
$_userRepository  : IUserRepository

Methods

__construct()  : mixed
delete()  : bool
Delete a user by ID

Properties

Methods

delete()

Delete a user by ID

public delete(int $userId) : bool
Parameters
$userId : int

User ID to delete

Tags
throws
Exception

If user cannot be deleted

Return values
bool

True if deletion was successful


        
On this page

Search results