| 1 | <?php |
||
| 14 | class Tuto extends Likeable |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Corps du texte |
||
| 18 | * @ORM\Column(name="text", type="text") |
||
| 19 | * @JMS\Expose |
||
| 20 | * @Assert\NotBlank() |
||
| 21 | */ |
||
| 22 | protected $text; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Date (timestamp) |
||
| 26 | * @ORM\Column(name="date", type="integer") |
||
| 27 | * @JMS\Expose |
||
| 28 | */ |
||
| 29 | protected $date; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Icône (utilisée par l'application mobile) |
||
| 33 | * @ORM\Column(name="icon", type="string", nullable=true) |
||
| 34 | * @JMS\Expose |
||
| 35 | */ |
||
| 36 | protected $icon; |
||
| 37 | |||
| 38 | public function __construct() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Set date |
||
| 46 | * |
||
| 47 | * @param integer $date |
||
| 48 | * @return Tuto |
||
| 49 | */ |
||
| 50 | public function setDate($date) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get date |
||
| 59 | * |
||
| 60 | * @return integer |
||
| 61 | */ |
||
| 62 | public function getDate() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Set text |
||
| 69 | * |
||
| 70 | * @param string $text |
||
| 71 | * @return Tuto |
||
| 72 | */ |
||
| 73 | public function setText($text) |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Get text |
||
| 82 | * |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | public function getText() |
||
| 89 | |||
| 90 | /** |
||
| 91 | * Set icon |
||
| 92 | * |
||
| 93 | * @param string $icon |
||
| 94 | * @return Tuto |
||
| 95 | */ |
||
| 96 | public function setIcon($icon) |
||
| 102 | |||
| 103 | /** |
||
| 104 | * Get icon |
||
| 105 | * |
||
| 106 | * @return string |
||
| 107 | */ |
||
| 108 | public function getIcon() |
||
| 112 | } |
||
| 113 |