3 namespace Rapsys\AirBundle\Entity
;
5 use Rapsys\AirBundle\Entity\Location
;
6 use Rapsys\AirBundle\Entity\User
;
25 protected $description;
73 * @var \Rapsys\UserBundle\Entity\Location
78 * @var \Rapsys\UserBundle\Entity\User
87 public function getId() {
94 * @param string $locale
98 public function setLocale($locale) {
99 $this->locale
= $locale;
109 public function getLocale() {
110 return $this->locale
;
116 * @param string $description
120 public function setDescription($description) {
121 $this->description
= $description;
131 public function getDescription() {
132 return $this->description
;
138 * @param string $class
142 public function setClass($class) {
143 $this->class = $class;
153 public function getClass() {
160 * @param string $short
164 public function setShort($short) {
165 $this->short
= $short;
175 public function getShort() {
182 * @param string $rate
186 public function setRate($rate) {
197 public function getRate() {
204 * @param string $contact
208 public function setContact($contact) {
209 $this->contact
= $contact;
219 public function getContact() {
220 return $this->contact
;
226 * @param string $donate
230 public function setDonate($donate) {
231 $this->donate
= $donate;
241 public function getDonate() {
242 return $this->donate
;
248 * @param string $link
252 public function setLink($link) {
263 public function getLink() {
270 * @param string $profile
274 public function setProfile($profile) {
275 $this->profile
= $profile;
285 public function getProfile() {
286 return $this->profile
;
292 * @param \DateTime $created
296 public function setCreated($created) {
297 $this->created
= $created;
307 public function getCreated() {
308 return $this->created
;
314 * @param \DateTime $updated
318 public function setUpdated($updated) {
319 $this->updated
= $updated;
329 public function getUpdated() {
330 return $this->updated
;
336 * @param Location $location
340 public function setLocation(Location
$location) {
341 $this->location
= $location;
351 public function getLocation() {
352 return $this->location
;
362 public function setUser(User
$user) {
373 public function getUser() {
380 public function preUpdate(\Doctrine\ORM\Event\PreUpdateEventArgs
$eventArgs) {
381 //Check that we have an snippet instance
382 if (($snippet = $eventArgs->getEntity()) instanceof Snippet
) {
384 $snippet->setUpdated(new \
DateTime('now'));