feat: rename Entity\UserOwned trait and interface

This commit is contained in:
2026-02-03 12:57:39 +01:00
parent de849c96d1
commit 487f007d0c
6 changed files with 9 additions and 9 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Entity;
use App\Entity\User\User;
interface UserOwnedInterface
{
/**
* @return User|null The User who is the owner of this entity
*/
public function getOwner(): ?User;
/**
* @param User|null The User who is the owner of this entity, or null to remove ownership
*/
public function setOwner(?User $owner): static;
/**
* Determines if the given User is the owner of this entity.
*
* @param User The User to check ownership against
*/
public function isOwnedBy(User $user): bool;
}