src/Entity/CRM/Api.php line 13
<?phpnamespace App\Entity\CRM;use App\Repository\ApiRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Security\Core\User\EquatableInterface;use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;use Symfony\Component\Security\Core\User\UserInterface;#[ORM\Entity(repositoryClass: ApiRepository::class)]class Api implements UserInterface, PasswordAuthenticatedUserInterface, EquatableInterface{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $email = null;#[ORM\Column(length: 255)]private ?string $password = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $note = null;#[ORM\Column]private ?bool $isActive = null;public function getId(): ?int{return $this->id;}public function getEmail(): ?string{return $this->email;}public function setEmail(string $email): static{$this->email = $email;return $this;}/*** @see PasswordAuthenticatedUserInterface*/public function getPassword(): string{return $this->password;}public function setPassword(string $password): self{$this->password = $password;return $this;}public function getNote(): ?string{return $this->note;}public function setNote(?string $note): static{$this->note = $note;return $this;}public function isIsActive(): ?bool{return $this->isActive;}public function setIsActive(bool $isActive): static{$this->isActive = $isActive;return $this;}public function isEqualTo(Admin|UserInterface $user): bool{if (!$user->isActive()) {return false;}return true;}public function getRoles(): array{return ['ROLE_API'];}public function eraseCredentials(){}public function getUserIdentifier(): string{return (string)$this->email;}}