1 | <?php |
||
17 | class Role extends BaseRole |
||
|
|||
18 | { |
||
19 | /** |
||
20 | * @ORM\Id |
||
21 | * @ORM\Column(type="integer", name="id") |
||
22 | * @ORM\GeneratedValue(strategy="AUTO") |
||
23 | */ |
||
24 | protected $id; |
||
25 | |||
26 | /** |
||
27 | * @Assert\NotBlank() |
||
28 | * @ORM\Column(type="string", name="role", unique=true, length=70) |
||
29 | */ |
||
30 | protected $role; |
||
31 | |||
32 | /** |
||
33 | * Populate the role field |
||
34 | * |
||
35 | * @param string $role |
||
36 | */ |
||
37 | 5 | public function __construct($role) |
|
41 | |||
42 | /** |
||
43 | * Return the role field. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | 3 | public function getRole() |
|
51 | |||
52 | /** |
||
53 | * Return the string representation of the role entity. |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | 1 | public function __toString(): string |
|
61 | |||
62 | /** |
||
63 | * Get id |
||
64 | * |
||
65 | * @return int |
||
66 | */ |
||
67 | 1 | public function getId() |
|
71 | |||
72 | /** |
||
73 | * Modify the role field. |
||
74 | * |
||
75 | * @param string $role ROLE_FOO etc |
||
76 | * |
||
77 | * @return RoleInterface |
||
78 | */ |
||
79 | 1 | public function setRole($role) |
|
85 | } |
||
86 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.