@@ -55,7 +55,7 @@ |
||
| 55 | 55 | /** |
| 56 | 56 | * Get the value of Numéro de téléphone concernant le profil |
| 57 | 57 | * |
| 58 | - * @return \DateTime|null |
|
| 58 | + * @return string |
|
| 59 | 59 | */ |
| 60 | 60 | public function getPhoneNumber() |
| 61 | 61 | { |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SDIS62\Core\User\Entity; |
| 4 | 4 | |
| 5 | -use libphonenumber\PhoneNumberUtil; |
|
| 6 | -use libphonenumber\PhoneNumberFormat; |
|
| 7 | 5 | use SDIS62\Core\Common\Entity\IdentityTrait; |
| 8 | -use SDIS62\Core\User\Exception\InvalidProfileException; |
|
| 9 | 6 | use SDIS62\Core\User\Exception\InvalidPhoneNumberException; |
| 7 | +use SDIS62\Core\User\Exception\InvalidProfileException; |
|
| 8 | +use libphonenumber\PhoneNumberFormat; |
|
| 9 | +use libphonenumber\PhoneNumberUtil; |
|
| 10 | 10 | |
| 11 | 11 | abstract class Profile |
| 12 | 12 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SDIS62\Core\User\Entity\Profile\Sdis; |
| 4 | 4 | |
| 5 | -use SDIS62\Core\User\Entity\User; |
|
| 6 | 5 | use SDIS62\Core\User\Entity\Profile\SdisProfile; |
| 6 | +use SDIS62\Core\User\Entity\User; |
|
| 7 | 7 | |
| 8 | 8 | class SapeurPompierSdisProfile extends SdisProfile |
| 9 | 9 | { |
@@ -296,7 +296,7 @@ |
||
| 296 | 296 | /** |
| 297 | 297 | * Ajoute un profil à l'utilisateur |
| 298 | 298 | * |
| 299 | - * @param SDIS62\Core\User\Entity\Profile $profile |
|
| 299 | + * @param Profile $profile |
|
| 300 | 300 | * @return self |
| 301 | 301 | */ |
| 302 | 302 | public function addProfile(Profile $profile) |
@@ -3,11 +3,11 @@ |
||
| 3 | 3 | namespace SDIS62\Core\User\Entity; |
| 4 | 4 | |
| 5 | 5 | use Datetime; |
| 6 | -use SDIS62\Core\Common\Entity\IdentityTrait; |
|
| 7 | 6 | use Doctrine\Common\Collections\ArrayCollection; |
| 7 | +use SDIS62\Core\Common\Entity\IdentityTrait; |
|
| 8 | +use SDIS62\Core\User\Exception\InvalidEmailAddressException; |
|
| 8 | 9 | use SDIS62\Core\User\Exception\InvalidGenderException; |
| 9 | 10 | use SDIS62\Core\User\Exception\InvalidPictureUrlException; |
| 10 | -use SDIS62\Core\User\Exception\InvalidEmailAddressException; |
|
| 11 | 11 | |
| 12 | 12 | class User |
| 13 | 13 | { |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Initialisation du service avec les repository utilisés |
| 14 | 14 | * |
| 15 | - * @param SDIS62\Core\User\Repository\ProfileRepositoryInterface $profile_repository |
|
| 16 | - * @param SDIS62\Core\User\Repository\UserRepositoryInterface $user_repository |
|
| 15 | + * @param ProfileRepositoryInterface $profile_repository |
|
| 16 | + * @param UserRepositoryInterface $user_repository |
|
| 17 | 17 | */ |
| 18 | 18 | public function __construct(ProfileRepositoryInterface $profile_repository, |
| 19 | 19 | UserRepositoryInterface $user_repository |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use SDIS62\Core\User\Entity\Profile; |
| 6 | 6 | use SDIS62\Core\User\Exception\InvalidProfileException; |
| 7 | -use SDIS62\Core\User\Repository\UserRepositoryInterface; |
|
| 8 | 7 | use SDIS62\Core\User\Repository\ProfileRepositoryInterface; |
| 8 | +use SDIS62\Core\User\Repository\UserRepositoryInterface; |
|
| 9 | 9 | |
| 10 | 10 | class ProfileService |
| 11 | 11 | { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * Initialisation du service avec les repository utilisés |
| 12 | 12 | * |
| 13 | - * @param SDIS62\Core\User\Repository\UserRepositoryInterface $user_repository |
|
| 13 | + * @param UserRepositoryInterface $user_repository |
|
| 14 | 14 | */ |
| 15 | 15 | public function __construct(UserRepositoryInterface $user_repository) |
| 16 | 16 | { |