SchulIT /
idp-exchange-models
| 1 | <?php |
||
| 2 | |||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | namespace SchulIT\IdpExchange\Response; |
||
| 4 | |||
| 5 | use JMS\Serializer\Annotation as Serializer; |
||
| 6 | use Symfony\Component\Validator\Constraints as Assert; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Represents a serialized version of a user with a username and a list of attributes (which were delivered using SAML in |
||
| 10 | * the first place). |
||
| 11 | */ |
||
|
0 ignored issues
–
show
|
|||
| 12 | class UserResponse { |
||
|
0 ignored issues
–
show
|
|||
| 13 | /** |
||
|
0 ignored issues
–
show
|
|||
| 14 | * @Serializer\Type("string") |
||
| 15 | * @Assert\NotBlank() |
||
| 16 | */ |
||
| 17 | public $username; |
||
| 18 | |||
| 19 | /** |
||
|
0 ignored issues
–
show
|
|||
| 20 | * @Serializer\Type("array<SchulIT\IdpExchange\Response\AbstractAttribute>") |
||
| 21 | */ |
||
| 22 | public $attributes = [ ]; |
||
| 23 | } |