3 namespace Rapsys\AirBundle\Entity
;
5 use Rapsys\AirBundle\Entity\Location
;
6 use Rapsys\AirBundle\Entity\User
;
25 protected $description;
78 * @var \Rapsys\UserBundle\Entity\Location
83 * @var \Rapsys\UserBundle\Entity\User
90 public function __construct() {
99 public function getId() {
106 * @param string $locale
110 public function setLocale($locale) {
111 $this->locale
= $locale;
121 public function getLocale() {
122 return $this->locale
;
128 * @param string $description
132 public function setDescription($description) {
133 $this->description
= $description;
143 public function getDescription() {
144 return $this->description
;
150 * @param string $class
154 public function setClass($class) {
155 $this->class = $class;
165 public function getClass() {
172 * @param string $short
176 public function setShort($short) {
177 $this->short
= $short;
187 public function getShort() {
194 * @param string $rate
198 public function setRate($rate) {
209 public function getRate() {
220 public function setHat(bool $hat) {
231 public function getHat(): bool {
237 * @param string $contact
241 public function setContact($contact) {
242 $this->contact
= $contact;
252 public function getContact() {
253 return $this->contact
;
259 * @param string $donate
263 public function setDonate($donate) {
264 $this->donate
= $donate;
274 public function getDonate() {
275 return $this->donate
;
281 * @param string $link
285 public function setLink($link) {
296 public function getLink() {
303 * @param string $profile
307 public function setProfile($profile) {
308 $this->profile
= $profile;
318 public function getProfile() {
319 return $this->profile
;
325 * @param \DateTime $created
329 public function setCreated($created) {
330 $this->created
= $created;
340 public function getCreated() {
341 return $this->created
;
347 * @param \DateTime $updated
351 public function setUpdated($updated) {
352 $this->updated
= $updated;
362 public function getUpdated() {
363 return $this->updated
;
369 * @param Location $location
373 public function setLocation(Location
$location) {
374 $this->location
= $location;
384 public function getLocation() {
385 return $this->location
;
395 public function setUser(User
$user) {
406 public function getUser() {
413 public function preUpdate(\Doctrine\ORM\Event\PreUpdateEventArgs
$eventArgs) {
414 //Check that we have an snippet instance
415 if (($snippet = $eventArgs->getEntity()) instanceof Snippet
) {
417 $snippet->setUpdated(new \
DateTime('now'));