| 1 | <?php |
||
| 13 | class Pontlyvalent |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @ORM\Id |
||
| 17 | * @ORM\Column(name="id", type="integer") |
||
| 18 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 19 | */ |
||
| 20 | protected $id; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Texte de commentaire |
||
| 24 | * @ORM\Column(name="text", type="text", nullable=false) |
||
| 25 | * @JMS\Expose |
||
| 26 | * @Assert\Type("string") |
||
| 27 | * @Assert\NotBlank() |
||
| 28 | */ |
||
| 29 | protected $text; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Date |
||
| 33 | * @ORM\Column(name="date", type="integer", nullable=true) |
||
| 34 | * @JMS\Expose |
||
| 35 | * @Assert\Type("integer") |
||
| 36 | */ |
||
| 37 | protected $date; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @ORM\ManyToOne(targetEntity="KI\UserBundle\Entity\User") |
||
| 41 | * @ORM\JoinColumn(nullable=false) |
||
| 42 | * @JMS\Expose |
||
| 43 | */ |
||
| 44 | protected $target; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @ORM\ManyToOne(targetEntity="KI\UserBundle\Entity\User") |
||
| 48 | * @ORM\JoinColumn(nullable=false) |
||
| 49 | * @JMS\Expose |
||
| 50 | */ |
||
| 51 | protected $author; |
||
| 52 | |||
| 53 | public function __construct() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Get id |
||
| 60 | * |
||
| 61 | * @return integer |
||
| 62 | */ |
||
| 63 | public function getId() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Set date |
||
| 70 | * |
||
| 71 | * @param integer $date |
||
| 72 | * @return Pontlyvalent |
||
| 73 | */ |
||
| 74 | public function setDate($date) |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Get date |
||
| 83 | * |
||
| 84 | * @return integer |
||
| 85 | */ |
||
| 86 | public function getDate() |
||
| 90 | |||
| 91 | /** |
||
| 92 | * Set text |
||
| 93 | * |
||
| 94 | * @param string $text |
||
| 95 | * @return Pontlyvalent |
||
| 96 | */ |
||
| 97 | public function setText($text) |
||
| 103 | |||
| 104 | /** |
||
| 105 | * Get text |
||
| 106 | * |
||
| 107 | * @return string |
||
| 108 | */ |
||
| 109 | public function getText() |
||
| 113 | |||
| 114 | /** |
||
| 115 | * Set target |
||
| 116 | * |
||
| 117 | * @param User $target |
||
| 118 | * @return Pontlyvalent |
||
| 119 | */ |
||
| 120 | public function setTarget($target) |
||
| 126 | |||
| 127 | /** |
||
| 128 | * Get target |
||
| 129 | * |
||
| 130 | * @return User |
||
| 131 | */ |
||
| 132 | public function getTarget() |
||
| 136 | |||
| 137 | /** |
||
| 138 | * Set author |
||
| 139 | * |
||
| 140 | * @param User $author |
||
| 141 | * @return Pontlyvalent |
||
| 142 | */ |
||
| 143 | public function setAuthor(User $author) |
||
| 149 | |||
| 150 | /** |
||
| 151 | * Get author |
||
| 152 | * |
||
| 153 | * @return User |
||
| 154 | */ |
||
| 155 | public function getAuthor() |
||
| 159 | } |
||
| 160 |