Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
SymfonyUserDecorator
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUser
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Apie\ApieBundle\Security;
4
5use Apie\Core\Entities\EntityInterface;
6use Symfony\Component\Security\Core\User\UserInterface;
7
8class SymfonyUserDecorator implements EntityInterface
9{
10    private SymfonyUserDecoratorIdentifier $id;
11    public function __construct(private readonly UserInterface $user)
12    {
13        $this->id = SymfonyUserDecoratorIdentifier::createFrom($user);
14    }
15
16    public function getUser(): UserInterface
17    {
18        return $this->user;
19    }
20
21
22    public function getId(): SymfonyUserDecoratorIdentifier
23    {
24        return $this->id;
25    }
26}