| 1 | <?php |
||
| 12 | trait UnsignedAutoIncrementID |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var integer |
||
| 16 | * |
||
| 17 | * @Id @GeneratedValue |
||
| 18 | * @Column(type="integer", name="id", options={"unsigned"=true}) |
||
| 19 | */ |
||
| 20 | protected $id; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Retourne l'ID de l'entité concernée |
||
| 24 | * |
||
| 25 | * @return integer |
||
| 26 | */ |
||
| 27 | public function getId() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Sette l'id de l'entité concernée. |
||
| 34 | * Mais en fait c'est une blague, on veut pas faire ca :) |
||
| 35 | * |
||
| 36 | * @param integer $id Le nouvel ID |
||
| 37 | */ |
||
| 38 | public function setId($id) |
||
| 42 | } |
||
| 43 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.