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;
/**
* Checks for specific user privileges
*/
final class PrivilegeChecker implements PrivilegeCheckerInterface
{
* Returns `true` if the user is an admin user
public function isAdmin(UserInterface $user): bool
// @todo replace when privileges are being added
return $user->getName() === 'admin';
}