2021-02-05 14:47:54 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace RetailCrm\ServiceBundle\Tests\DataFixtures;
|
|
|
|
|
|
|
|
use Symfony\Component\Security\Core\User\UserInterface;
|
|
|
|
|
|
|
|
class User implements UserInterface
|
|
|
|
{
|
2022-07-21 13:02:32 +03:00
|
|
|
protected string $clientId = '123';
|
|
|
|
|
2021-02-05 14:47:54 +03:00
|
|
|
public function getRoles(): array
|
|
|
|
{
|
|
|
|
return ["USER"];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getUsername(): string
|
|
|
|
{
|
|
|
|
return "user";
|
|
|
|
}
|
|
|
|
|
|
|
|
public function eraseCredentials(): void
|
|
|
|
{
|
|
|
|
}
|
2022-07-20 13:58:16 +03:00
|
|
|
|
|
|
|
public function getUserIdentifier(): string
|
|
|
|
{
|
2022-07-21 13:02:32 +03:00
|
|
|
return $this->clientId;
|
2022-07-20 13:58:16 +03:00
|
|
|
}
|
2021-02-05 14:47:54 +03:00
|
|
|
}
|