for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Uxmp\Core\Component\User;
use Uxmp\Core\Orm\Model\UserInterface;
use Uxmp\Core\Orm\Repository\UserRepositoryInterface;
/**
* Deletes a user including all dependencies and meta data
*/
final class UserDeleter implements UserDeleterInterface
{
public function __construct(
private readonly UserRepositoryInterface $userRepository,
) {
}
public function delete(UserInterface $user): void
$this->userRepository->delete($user);