1
0
mirror of synced 2024-12-01 09:06:03 +03:00
service-bundle/Tests/DataFixtures/User.php

30 lines
504 B
PHP
Raw Normal View History

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
{
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
{
return $this->clientId;
2022-07-20 13:58:16 +03:00
}
2021-02-05 14:47:54 +03:00
}