3 namespace Rapsys\AirBundle\Entity
;
5 use Rapsys\AirBundle\Entity\Location
;
6 use Rapsys\AirBundle\Entity\User
;
25 protected $description;
63 * @var \Rapsys\UserBundle\Entity\Location
68 * @var \Rapsys\UserBundle\Entity\User
77 public function getId() {
84 * @param string $locale
88 public function setLocale($locale) {
89 $this->locale
= $locale;
99 public function getLocale() {
100 return $this->locale
;
106 * @param string $description
110 public function setDescription($description) {
111 $this->description
= $description;
121 public function getDescription() {
122 return $this->description
;
128 * @param string $class
132 public function setClass($class) {
133 $this->class = $class;
143 public function getClass() {
150 * @param string $contact
154 public function setContact($contact) {
155 $this->contact
= $contact;
165 public function getContact() {
166 return $this->contact
;
172 * @param string $donate
176 public function setDonate($donate) {
177 $this->donate
= $donate;
187 public function getDonate() {
188 return $this->donate
;
194 * @param string $link
198 public function setLink($link) {
209 public function getLink() {
216 * @param string $profile
220 public function setProfile($profile) {
221 $this->profile
= $profile;
231 public function getProfile() {
232 return $this->profile
;
238 * @param \DateTime $created
242 public function setCreated($created) {
243 $this->created
= $created;
253 public function getCreated() {
254 return $this->created
;
260 * @param \DateTime $updated
264 public function setUpdated($updated) {
265 $this->updated
= $updated;
275 public function getUpdated() {
276 return $this->updated
;
282 * @param Location $location
286 public function setLocation(Location
$location) {
287 $this->location
= $location;
297 public function getLocation() {
298 return $this->location
;
308 public function setUser(User
$user) {
319 public function getUser() {
326 public function preUpdate(\Doctrine\ORM\Event\PreUpdateEventArgs
$eventArgs) {
327 //Check that we have an snippet instance
328 if (($snippet = $eventArgs->getEntity()) instanceof Snippet
) {
330 $snippet->setUpdated(new \
DateTime('now'));