| 1 | <?php |
||
| 8 | abstract class SdisProfile extends Profile |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Grade |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $grade; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Poste |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $poste; |
||
| 23 | |||
| 24 | /* |
||
| 25 | * Constructeur |
||
| 26 | * |
||
| 27 | * @param SDIS62\Core\User\Entity\User $user |
||
| 28 | * @param string $grade |
||
| 29 | * @param string $poste |
||
| 30 | */ |
||
| 31 | 96 | public function __construct(User $user, $grade, $poste) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Get the value of Grade |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 18 | public function getGrade() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Change le grade associé au profil |
||
| 51 | * |
||
| 52 | * @param string grade |
||
| 53 | * |
||
| 54 | * @return self |
||
| 55 | */ |
||
| 56 | 6 | public function promote($value) |
|
| 62 | |||
| 63 | /** |
||
| 64 | * Get the value of Poste |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 12 | public function getPoste() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * Set the value of Poste |
||
| 75 | * |
||
| 76 | * @param string poste |
||
| 77 | * |
||
| 78 | * @return self |
||
| 79 | */ |
||
| 80 | 3 | public function setPoste($value) |
|
| 86 | } |
||
| 87 |