| 1 | <?php  | 
            ||
| 16 | class Utilisateur extends Entity implements UtilisateurInterface, UserInterface  | 
            ||
| 17 | { | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @var RoleUtilisateur  | 
            ||
| 21 | *  | 
            ||
| 22 |      * @ORM\OneToOne(targetEntity="RoleUtilisateur", cascade={"persist"}) | 
            ||
| 23 | * @ORM\JoinColumn(name="roles", referencedColumnName="id", nullable=false)  | 
            ||
| 24 | */  | 
            ||
| 25 | protected $roles;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * @var string  | 
            ||
| 29 | *  | 
            ||
| 30 | * @ORM\Column(name="salt", type="string", length=255)  | 
            ||
| 31 | */  | 
            ||
| 32 | protected $salt;  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @var string  | 
            ||
| 36 | *  | 
            ||
| 37 | * @ORM\Column(name="password", type="string", length=255)  | 
            ||
| 38 | */  | 
            ||
| 39 | protected $password;  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * @var string  | 
            ||
| 43 | *  | 
            ||
| 44 | * @ORM\Column(name="email", type="string", length=255)  | 
            ||
| 45 | */  | 
            ||
| 46 | protected $email;  | 
            ||
| 47 | |||
| 48 | public function getRoles()  | 
            ||
| 57 | |||
| 58 | public function getPassword()  | 
            ||
| 62 | |||
| 63 | public function getSalt()  | 
            ||
| 67 | |||
| 68 | public function getUsername()  | 
            ||
| 72 | |||
| 73 | public function eraseCredentials()  | 
            ||
| 76 | |||
| 77 | |||
| 78 | }  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 79 | 
This check marks files that end in a newline character, i.e. an empy line.