Passed
Pull Request — master (#347)
by Mirko
09:07
created

Geocache   F

Complexity

Total Complexity 69

Size/Duplication

Total Lines 1090
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 1090
rs 1.2452
wmc 69
lcom 0
cbo 0

69 Methods

Rating   Name   Duplication   Size   Complexity  
A setUuid() 0 6 1
A getUuid() 0 4 1
A setNode() 0 6 1
A getNode() 0 4 1
A setDateCreated() 0 6 1
A getDateCreated() 0 4 1
A setIsPublishdate() 0 6 1
A getIsPublishdate() 0 4 1
A setLastModified() 0 6 1
A getLastModified() 0 4 1
A setListingLastModified() 0 6 1
A getListingLastModified() 0 4 1
A setMetaLastModified() 0 6 1
A getMetaLastModified() 0 4 1
A setUserId() 0 6 1
A getUserId() 0 4 1
A setName() 0 6 1
A getName() 0 4 1
A setLongitude() 0 6 1
A getLongitude() 0 4 1
A setLatitude() 0 6 1
A getLatitude() 0 4 1
A setType() 0 6 1
A getType() 0 4 1
A setStatus() 0 6 1
A getStatus() 0 4 1
A setCountry() 0 6 1
A getCountry() 0 4 1
A setDateHidden() 0 6 1
A getDateHidden() 0 4 1
A setSize() 0 6 1
A getSize() 0 4 1
A setDifficulty() 0 6 1
A getDifficulty() 0 4 1
A setTerrain() 0 6 1
A getTerrain() 0 4 1
A setLogpw() 0 6 1
A getLogpw() 0 4 1
A setSearchTime() 0 6 1
A getSearchTime() 0 4 1
A setWayLength() 0 6 1
A getWayLength() 0 4 1
A setWpGc() 0 6 1
A getWpGc() 0 4 1
A setWpGcMaintained() 0 6 1
A getWpGcMaintained() 0 4 1
A setWpNc() 0 6 1
A getWpNc() 0 4 1
A setWpOc() 0 6 1
A getWpOc() 0 4 1
A setDescLanguages() 0 6 1
A getDescLanguages() 0 4 1
A setDefaultDesclang() 0 6 1
A getDefaultDesclang() 0 4 1
A setDateActivate() 0 6 1
A getDateActivate() 0 4 1
A setNeedNpaRecalc() 0 6 1
A getNeedNpaRecalc() 0 4 1
A setShowCachelists() 0 6 1
A getShowCachelists() 0 4 1
A setProtectOldCoords() 0 6 1
A getProtectOldCoords() 0 4 1
A setNeedsMaintenance() 0 6 1
A getNeedsMaintenance() 0 4 1
A setListingOutdated() 0 6 1
A getListingOutdated() 0 4 1
A setFlagsLastModified() 0 6 1
A getFlagsLastModified() 0 4 1
A getCacheId() 0 4 1

How to fix   Complexity   

Complex Class

Complex classes like Geocache often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use Geocache, and based on these observations, apply Extract Interface, too.

1
<?php
2
3
namespace AppBundle\Entity;
4
5
use DateTime;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * Geocache
10
 *
11
 * @ORM\Table(name="caches", uniqueConstraints={@ORM\UniqueConstraint(name="uuid", columns={"uuid"}), @ORM\UniqueConstraint(name="wp_oc", columns={"wp_oc"})}, indexes={@ORM\Index(name="longitude", columns={"longitude", "latitude"}), @ORM\Index(name="date_created", columns={"date_created"}), @ORM\Index(name="latitude", columns={"latitude"}), @ORM\Index(name="country", columns={"country"}), @ORM\Index(name="status", columns={"status", "date_activate"}), @ORM\Index(name="last_modified", columns={"last_modified"}), @ORM\Index(name="wp_gc", columns={"wp_gc"}), @ORM\Index(name="user_id", columns={"user_id"}), @ORM\Index(name="date_activate", columns={"date_activate"}), @ORM\Index(name="need_npa_recalc", columns={"need_npa_recalc"}), @ORM\Index(name="type", columns={"type"}), @ORM\Index(name="size", columns={"size"}), @ORM\Index(name="difficulty", columns={"difficulty"}), @ORM\Index(name="terrain", columns={"terrain"}), @ORM\Index(name="wp_gc_maintained", columns={"wp_gc_maintained"})})
12
 * @ORM\Entity
13
 */
14
class Geocache
15
{
16
    const GEOCACHE_TYPE_UNKNOWN = 1;
17
    const GEOCACHE_TYPE_TRADITIONAL = 2;
18
    const GEOCACHE_TYPE_MULTI = 3;
19
    const GEOCACHE_TYPE_VIRTUAL = 4;
20
    const GEOCACHE_TYPE_WEBCAM = 5;
21
    const GEOCACHE_TYPE_EVENT = 6;
22
    const GEOCACHE_TYPE_QUIZ = 7;
23
    const GEOCACHE_TYPE_MATH = 8;
24
    const GEOCACHE_TYPE_MOVING = 9;
25
    const GEOCACHE_TYPE_DRIVE_IN = 10;
26
27
    const EVENT_CACHE_TYPES = [
28
        self::GEOCACHE_TYPE_EVENT,
29
    ];
30
31
    /**
32
     * @var string
33
     *
34
     * @ORM\Column(name="uuid", type="string", length=36, nullable=false)
35
     */
36
    private $uuid;
37
38
    /**
39
     * @var int
40
     *
41
     * @ORM\Column(name="node", type="smallint", nullable=false)
42
     */
43
    private $node = 0;
44
45
    /**
46
     * @var \DateTime
47
     *
48
     * @ORM\Column(name="date_created", type="datetime", nullable=false)
49
     */
50
    private $dateCreated;
51
52
    /**
53
     * @var bool
54
     *
55
     * @ORM\Column(name="is_publishdate", type="boolean", nullable=false)
56
     */
57
    private $isPublishdate = false;
58
59
    /**
60
     * @var \DateTime
61
     *
62
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
63
     */
64
    private $lastModified;
65
66
    /**
67
     * @var \DateTime
68
     *
69
     * @ORM\Column(name="listing_last_modified", type="datetime", nullable=false)
70
     */
71
    private $listingLastModified;
72
73
    /**
74
     * @var \DateTime
75
     *
76
     * @ORM\Column(name="meta_last_modified", type="datetime", nullable=false)
77
     */
78
    private $metaLastModified;
79
80
    /**
81
     * @var integer
82
     *
83
     * @ORM\Column(name="user_id", type="integer", nullable=false)
84
     */
85
    private $userId;
86
87
    /**
88
     * @var string
89
     *
90
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
91
     */
92
    private $name;
93
94
    /**
95
     * @var float
96
     *
97
     * @ORM\Column(name="longitude", type="float", precision=10, scale=0, nullable=false)
98
     */
99
    private $longitude;
100
101
    /**
102
     * @var float
103
     *
104
     * @ORM\Column(name="latitude", type="float", precision=10, scale=0, nullable=false)
105
     */
106
    private $latitude;
107
108
    /**
109
     * @var int
110
     *
111
     * @ORM\Column(name="type", type="integer", nullable=false)
112
     */
113
    private $type;
114
115
    /**
116
     * @var bool
117
     *
118
     * @ORM\Column(name="status", type="boolean", nullable=false)
119
     */
120
    private $status;
121
122
    /**
123
     * @var string
124
     *
125
     * @ORM\Column(name="country", type="string", length=2, nullable=false)
126
     */
127
    private $country;
128
129
    /**
130
     * @var \DateTime
131
     *
132
     * @ORM\Column(name="date_hidden", type="date", nullable=false)
133
     */
134
    private $dateHidden;
135
136
    /**
137
     * @var bool
138
     *
139
     * @ORM\Column(name="size", type="boolean", nullable=false)
140
     */
141
    private $size;
142
143
    /**
144
     * @var bool
145
     *
146
     * @ORM\Column(name="difficulty", type="boolean", nullable=false)
147
     */
148
    private $difficulty;
149
150
    /**
151
     * @var bool
152
     *
153
     * @ORM\Column(name="terrain", type="boolean", nullable=false)
154
     */
155
    private $terrain;
156
157
    /**
158
     * @var string
159
     *
160
     * @ORM\Column(name="logpw", type="string", length=20, nullable=true)
161
     */
162
    private $logpw;
163
164
    /**
165
     * @var float
166
     *
167
     * @ORM\Column(name="search_time", type="float", precision=10, scale=0, nullable=false)
168
     */
169
    private $searchTime = 0.0;
170
171
    /**
172
     * @var float
173
     *
174
     * @ORM\Column(name="way_length", type="float", precision=10, scale=0, nullable=false)
175
     */
176
    private $wayLength = 0.0;
177
178
    /**
179
     * @var string
180
     *
181
     * @ORM\Column(name="wp_gc", type="string", length=7, nullable=false)
182
     */
183
    private $wpGc;
184
185
    /**
186
     * @var string
187
     *
188
     * @ORM\Column(name="wp_gc_maintained", type="string", length=7, nullable=false)
189
     */
190
    private $wpGcMaintained;
191
192
    /**
193
     * @var string
194
     *
195
     * @ORM\Column(name="wp_nc", type="string", length=6, nullable=false)
196
     */
197
    private $wpNc;
198
199
    /**
200
     * @var string
201
     *
202
     * @ORM\Column(name="wp_oc", type="string", length=6, nullable=true)
203
     */
204
    private $wpOc;
205
206
    /**
207
     * @var string
208
     *
209
     * @ORM\Column(name="desc_languages", type="string", length=60, nullable=false)
210
     */
211
    private $descLanguages;
212
213
    /**
214
     * @var string
215
     *
216
     * @ORM\Column(name="default_desclang", type="string", length=2, nullable=false)
217
     */
218
    private $defaultDesclang;
219
220
    /**
221
     * @var \DateTime
222
     *
223
     * @ORM\Column(name="date_activate", type="datetime", nullable=true)
224
     */
225
    private $dateActivate;
226
227
    /**
228
     * @var bool
229
     *
230
     * @ORM\Column(name="need_npa_recalc", type="boolean", nullable=false)
231
     */
232
    private $needNpaRecalc;
233
234
    /**
235
     * @var bool
236
     *
237
     * @ORM\Column(name="show_cachelists", type="boolean", nullable=false)
238
     */
239
    private $showCachelists = true;
240
241
    /**
242
     * @var bool
243
     *
244
     * @ORM\Column(name="protect_old_coords", type="boolean", nullable=false)
245
     */
246
    private $protectOldCoords = false;
247
248
    /**
249
     * @var bool
250
     *
251
     * @ORM\Column(name="needs_maintenance", type="boolean", nullable=false)
252
     */
253
    private $needsMaintenance = false;
254
255
    /**
256
     * @var bool
257
     *
258
     * @ORM\Column(name="listing_outdated", type="boolean", nullable=false)
259
     */
260
    private $listingOutdated = false;
261
262
    /**
263
     * @var \DateTime
264
     *
265
     * @ORM\Column(name="flags_last_modified", type="datetime", nullable=false)
266
     */
267
    private $flagsLastModified;
268
269
    /**
270
     * @var integer
271
     *
272
     * @ORM\Column(name="cache_id", type="integer")
273
     * @ORM\Id
274
     * @ORM\GeneratedValue(strategy="IDENTITY")
275
     */
276
    private $cacheId;
277
278
    /**
279
     * Set uuid
280
     *
281
     * @param string $uuid
282
     *
283
     * @return \AppBundle\Entity\Geocache
284
     */
285
    public function setUuid($uuid)
286
    {
287
        $this->uuid = $uuid;
288
289
        return $this;
290
    }
291
292
    /**
293
     * Get uuid
294
     *
295
     * @return string
296
     */
297
    public function getUuid()
298
    {
299
        return $this->uuid;
300
    }
301
302
    /**
303
     * Set node
304
     *
305
     * @param bool $node
306
     *
307
     * @return \AppBundle\Entity\Geocache
308
     */
309
    public function setNode($node)
310
    {
311
        $this->node = $node;
0 ignored issues
show
Documentation Bug introduced by
The property $node was declared of type integer, but $node is of type boolean. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
312
313
        return $this;
314
    }
315
316
    /**
317
     * Get node
318
     *
319
     * @return bool
320
     */
321
    public function getNode()
322
    {
323
        return $this->node;
324
    }
325
326
    /**
327
     * Set dateCreated
328
     *
329
     * @param \DateTime $dateCreated
330
     *
331
     * @return \AppBundle\Entity\Geocache
332
     */
333
    public function setDateCreated(DateTime $dateCreated)
334
    {
335
        $this->dateCreated = $dateCreated;
336
337
        return $this;
338
    }
339
340
    /**
341
     * Get dateCreated
342
     *
343
     * @return \DateTime
344
     */
345
    public function getDateCreated()
346
    {
347
        return $this->dateCreated;
348
    }
349
350
    /**
351
     * Set isPublishdate
352
     *
353
     * @param bool $isPublishdate
354
     *
355
     * @return \AppBundle\Entity\Geocache
356
     */
357
    public function setIsPublishdate($isPublishdate)
358
    {
359
        $this->isPublishdate = $isPublishdate;
360
361
        return $this;
362
    }
363
364
    /**
365
     * Get isPublishdate
366
     *
367
     * @return bool
368
     */
369
    public function getIsPublishdate()
370
    {
371
        return $this->isPublishdate;
372
    }
373
374
    /**
375
     * Set lastModified
376
     *
377
     * @param \DateTime $lastModified
378
     *
379
     * @return \AppBundle\Entity\Geocache
380
     */
381
    public function setLastModified(DateTime $lastModified)
382
    {
383
        $this->lastModified = $lastModified;
384
385
        return $this;
386
    }
387
388
    /**
389
     * Get lastModified
390
     *
391
     * @return \DateTime
392
     */
393
    public function getLastModified()
394
    {
395
        return $this->lastModified;
396
    }
397
398
    /**
399
     * Set listingLastModified
400
     *
401
     * @param \DateTime $listingLastModified
402
     *
403
     * @return \AppBundle\Entity\Geocache
404
     */
405
    public function setListingLastModified(DateTime $listingLastModified)
406
    {
407
        $this->listingLastModified = $listingLastModified;
408
409
        return $this;
410
    }
411
412
    /**
413
     * Get listingLastModified
414
     *
415
     * @return \DateTime
416
     */
417
    public function getListingLastModified()
418
    {
419
        return $this->listingLastModified;
420
    }
421
422
    /**
423
     * Set metaLastModified
424
     *
425
     * @param \DateTime $metaLastModified
426
     *
427
     * @return \AppBundle\Entity\Geocache
428
     */
429
    public function setMetaLastModified(DateTime $metaLastModified)
430
    {
431
        $this->metaLastModified = $metaLastModified;
432
433
        return $this;
434
    }
435
436
    /**
437
     * Get metaLastModified
438
     *
439
     * @return \DateTime
440
     */
441
    public function getMetaLastModified()
442
    {
443
        return $this->metaLastModified;
444
    }
445
446
    /**
447
     * Set userId
448
     *
449
     * @param int $userId
450
     *
451
     * @return \AppBundle\Entity\Geocache
452
     */
453
    public function setUserId($userId)
454
    {
455
        $this->userId = $userId;
456
457
        return $this;
458
    }
459
460
    /**
461
     * Get userId
462
     *
463
     * @return int
464
     */
465
    public function getUserId()
466
    {
467
        return $this->userId;
468
    }
469
470
    /**
471
     * Set name
472
     *
473
     * @param string $name
474
     *
475
     * @return \AppBundle\Entity\Geocache
476
     */
477
    public function setName($name)
478
    {
479
        $this->name = $name;
480
481
        return $this;
482
    }
483
484
    /**
485
     * Get name
486
     *
487
     * @return string
488
     */
489
    public function getName()
490
    {
491
        return $this->name;
492
    }
493
494
    /**
495
     * Set longitude
496
     *
497
     * @param float $longitude
498
     *
499
     * @return \AppBundle\Entity\Geocache
500
     */
501
    public function setLongitude($longitude)
502
    {
503
        $this->longitude = $longitude;
504
505
        return $this;
506
    }
507
508
    /**
509
     * Get longitude
510
     *
511
     * @return float
512
     */
513
    public function getLongitude()
514
    {
515
        return $this->longitude;
516
    }
517
518
    /**
519
     * Set latitude
520
     *
521
     * @param float $latitude
522
     *
523
     * @return \AppBundle\Entity\Geocache
524
     */
525
    public function setLatitude($latitude)
526
    {
527
        $this->latitude = $latitude;
528
529
        return $this;
530
    }
531
532
    /**
533
     * Get latitude
534
     *
535
     * @return float
536
     */
537
    public function getLatitude()
538
    {
539
        return $this->latitude;
540
    }
541
542
    /**
543
     * Set type
544
     *
545
     * @param bool $type
546
     *
547
     * @return \AppBundle\Entity\Geocache
548
     */
549
    public function setType($type)
550
    {
551
        $this->type = $type;
0 ignored issues
show
Documentation Bug introduced by
The property $type was declared of type integer, but $type is of type boolean. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
552
553
        return $this;
554
    }
555
556
    /**
557
     * Get type
558
     *
559
     * @return bool
560
     */
561
    public function getType()
562
    {
563
        return $this->type;
564
    }
565
566
    /**
567
     * Set status
568
     *
569
     * @param bool $status
570
     *
571
     * @return \AppBundle\Entity\Geocache
572
     */
573
    public function setStatus($status)
574
    {
575
        $this->status = $status;
576
577
        return $this;
578
    }
579
580
    /**
581
     * Get status
582
     *
583
     * @return bool
584
     */
585
    public function getStatus()
586
    {
587
        return $this->status;
588
    }
589
590
    /**
591
     * Set country
592
     *
593
     * @param string $country
594
     *
595
     * @return \AppBundle\Entity\Geocache
596
     */
597
    public function setCountry($country)
598
    {
599
        $this->country = $country;
600
601
        return $this;
602
    }
603
604
    /**
605
     * Get country
606
     *
607
     * @return string
608
     */
609
    public function getCountry()
610
    {
611
        return $this->country;
612
    }
613
614
    /**
615
     * Set dateHidden
616
     *
617
     * @param \DateTime $dateHidden
618
     *
619
     * @return \AppBundle\Entity\Geocache
620
     */
621
    public function setDateHidden(DateTime $dateHidden)
622
    {
623
        $this->dateHidden = $dateHidden;
624
625
        return $this;
626
    }
627
628
    /**
629
     * Get dateHidden
630
     *
631
     * @return \DateTime
632
     */
633
    public function getDateHidden()
634
    {
635
        return $this->dateHidden;
636
    }
637
638
    /**
639
     * Set size
640
     *
641
     * @param bool $size
642
     *
643
     * @return \AppBundle\Entity\Geocache
644
     */
645
    public function setSize($size)
646
    {
647
        $this->size = $size;
648
649
        return $this;
650
    }
651
652
    /**
653
     * Get size
654
     *
655
     * @return bool
656
     */
657
    public function getSize()
658
    {
659
        return $this->size;
660
    }
661
662
    /**
663
     * Set difficulty
664
     *
665
     * @param bool $difficulty
666
     *
667
     * @return \AppBundle\Entity\Geocache
668
     */
669
    public function setDifficulty($difficulty)
670
    {
671
        $this->difficulty = $difficulty;
672
673
        return $this;
674
    }
675
676
    /**
677
     * Get difficulty
678
     *
679
     * @return bool
680
     */
681
    public function getDifficulty()
682
    {
683
        return $this->difficulty;
684
    }
685
686
    /**
687
     * Set terrain
688
     *
689
     * @param bool $terrain
690
     *
691
     * @return \AppBundle\Entity\Geocache
692
     */
693
    public function setTerrain($terrain)
694
    {
695
        $this->terrain = $terrain;
696
697
        return $this;
698
    }
699
700
    /**
701
     * Get terrain
702
     *
703
     * @return bool
704
     */
705
    public function getTerrain()
706
    {
707
        return $this->terrain;
708
    }
709
710
    /**
711
     * Set logpw
712
     *
713
     * @param string $logpw
714
     *
715
     * @return \AppBundle\Entity\Geocache
716
     */
717
    public function setLogpw($logpw)
718
    {
719
        $this->logpw = $logpw;
720
721
        return $this;
722
    }
723
724
    /**
725
     * Get logpw
726
     *
727
     * @return string
728
     */
729
    public function getLogpw()
730
    {
731
        return $this->logpw;
732
    }
733
734
    /**
735
     * Set searchTime
736
     *
737
     * @param float $searchTime
738
     *
739
     * @return \AppBundle\Entity\Geocache
740
     */
741
    public function setSearchTime($searchTime)
742
    {
743
        $this->searchTime = $searchTime;
744
745
        return $this;
746
    }
747
748
    /**
749
     * Get searchTime
750
     *
751
     * @return float
752
     */
753
    public function getSearchTime()
754
    {
755
        return $this->searchTime;
756
    }
757
758
    /**
759
     * Set wayLength
760
     *
761
     * @param float $wayLength
762
     *
763
     * @return \AppBundle\Entity\Geocache
764
     */
765
    public function setWayLength($wayLength)
766
    {
767
        $this->wayLength = $wayLength;
768
769
        return $this;
770
    }
771
772
    /**
773
     * Get wayLength
774
     *
775
     * @return float
776
     */
777
    public function getWayLength()
778
    {
779
        return $this->wayLength;
780
    }
781
782
    /**
783
     * Set wpGc
784
     *
785
     * @param string $wpGc
786
     *
787
     * @return \AppBundle\Entity\Geocache
788
     */
789
    public function setWpGc($wpGc)
790
    {
791
        $this->wpGc = $wpGc;
792
793
        return $this;
794
    }
795
796
    /**
797
     * Get wpGc
798
     *
799
     * @return string
800
     */
801
    public function getWpGc()
802
    {
803
        return $this->wpGc;
804
    }
805
806
    /**
807
     * Set wpGcMaintained
808
     *
809
     * @param string $wpGcMaintained
810
     *
811
     * @return \AppBundle\Entity\Geocache
812
     */
813
    public function setWpGcMaintained($wpGcMaintained)
814
    {
815
        $this->wpGcMaintained = $wpGcMaintained;
816
817
        return $this;
818
    }
819
820
    /**
821
     * Get wpGcMaintained
822
     *
823
     * @return string
824
     */
825
    public function getWpGcMaintained()
826
    {
827
        return $this->wpGcMaintained;
828
    }
829
830
    /**
831
     * Set wpNc
832
     *
833
     * @param string $wpNc
834
     *
835
     * @return \AppBundle\Entity\Geocache
836
     */
837
    public function setWpNc($wpNc)
838
    {
839
        $this->wpNc = $wpNc;
840
841
        return $this;
842
    }
843
844
    /**
845
     * Get wpNc
846
     *
847
     * @return string
848
     */
849
    public function getWpNc()
850
    {
851
        return $this->wpNc;
852
    }
853
854
    /**
855
     * Set wpOc
856
     *
857
     * @param string $wpOc
858
     *
859
     * @return \AppBundle\Entity\Geocache
860
     */
861
    public function setWpOc($wpOc)
862
    {
863
        $this->wpOc = $wpOc;
864
865
        return $this;
866
    }
867
868
    /**
869
     * Get wpOc
870
     *
871
     * @return string
872
     */
873
    public function getWpOc()
874
    {
875
        return $this->wpOc;
876
    }
877
878
    /**
879
     * Set descLanguages
880
     *
881
     * @param string $descLanguages
882
     *
883
     * @return \AppBundle\Entity\Geocache
884
     */
885
    public function setDescLanguages($descLanguages)
886
    {
887
        $this->descLanguages = $descLanguages;
888
889
        return $this;
890
    }
891
892
    /**
893
     * Get descLanguages
894
     *
895
     * @return string
896
     */
897
    public function getDescLanguages()
898
    {
899
        return $this->descLanguages;
900
    }
901
902
    /**
903
     * Set defaultDesclang
904
     *
905
     * @param string $defaultDesclang
906
     *
907
     * @return \AppBundle\Entity\Geocache
908
     */
909
    public function setDefaultDesclang($defaultDesclang)
910
    {
911
        $this->defaultDesclang = $defaultDesclang;
912
913
        return $this;
914
    }
915
916
    /**
917
     * Get defaultDesclang
918
     *
919
     * @return string
920
     */
921
    public function getDefaultDesclang()
922
    {
923
        return $this->defaultDesclang;
924
    }
925
926
    /**
927
     * Set dateActivate
928
     *
929
     * @param \DateTime $dateActivate
930
     *
931
     * @return \AppBundle\Entity\Geocache
932
     */
933
    public function setDateActivate(DateTime $dateActivate)
934
    {
935
        $this->dateActivate = $dateActivate;
936
937
        return $this;
938
    }
939
940
    /**
941
     * Get dateActivate
942
     *
943
     * @return \DateTime
944
     */
945
    public function getDateActivate()
946
    {
947
        return $this->dateActivate;
948
    }
949
950
    /**
951
     * Set needNpaRecalc
952
     *
953
     * @param bool $needNpaRecalc
954
     *
955
     * @return \AppBundle\Entity\Geocache
956
     */
957
    public function setNeedNpaRecalc($needNpaRecalc)
958
    {
959
        $this->needNpaRecalc = $needNpaRecalc;
960
961
        return $this;
962
    }
963
964
    /**
965
     * Get needNpaRecalc
966
     *
967
     * @return bool
968
     */
969
    public function getNeedNpaRecalc()
970
    {
971
        return $this->needNpaRecalc;
972
    }
973
974
    /**
975
     * Set showCachelists
976
     *
977
     * @param bool $showCachelists
978
     *
979
     * @return \AppBundle\Entity\Geocache
980
     */
981
    public function setShowCachelists($showCachelists)
982
    {
983
        $this->showCachelists = $showCachelists;
984
985
        return $this;
986
    }
987
988
    /**
989
     * Get showCachelists
990
     *
991
     * @return bool
992
     */
993
    public function getShowCachelists()
994
    {
995
        return $this->showCachelists;
996
    }
997
998
    /**
999
     * Set protectOldCoords
1000
     *
1001
     * @param bool $protectOldCoords
1002
     *
1003
     * @return \AppBundle\Entity\Geocache
1004
     */
1005
    public function setProtectOldCoords($protectOldCoords)
1006
    {
1007
        $this->protectOldCoords = $protectOldCoords;
1008
1009
        return $this;
1010
    }
1011
1012
    /**
1013
     * Get protectOldCoords
1014
     *
1015
     * @return bool
1016
     */
1017
    public function getProtectOldCoords()
1018
    {
1019
        return $this->protectOldCoords;
1020
    }
1021
1022
    /**
1023
     * Set needsMaintenance
1024
     *
1025
     * @param bool $needsMaintenance
1026
     *
1027
     * @return \AppBundle\Entity\Geocache
1028
     */
1029
    public function setNeedsMaintenance($needsMaintenance)
1030
    {
1031
        $this->needsMaintenance = $needsMaintenance;
1032
1033
        return $this;
1034
    }
1035
1036
    /**
1037
     * Get needsMaintenance
1038
     *
1039
     * @return bool
1040
     */
1041
    public function getNeedsMaintenance()
1042
    {
1043
        return $this->needsMaintenance;
1044
    }
1045
1046
    /**
1047
     * Set listingOutdated
1048
     *
1049
     * @param bool $listingOutdated
1050
     *
1051
     * @return \AppBundle\Entity\Geocache
1052
     */
1053
    public function setListingOutdated($listingOutdated)
1054
    {
1055
        $this->listingOutdated = $listingOutdated;
1056
1057
        return $this;
1058
    }
1059
1060
    /**
1061
     * Get listingOutdated
1062
     *
1063
     * @return bool
1064
     */
1065
    public function getListingOutdated()
1066
    {
1067
        return $this->listingOutdated;
1068
    }
1069
1070
    /**
1071
     * Set flagsLastModified
1072
     *
1073
     * @param \DateTime $flagsLastModified
1074
     *
1075
     * @return \AppBundle\Entity\Geocache
1076
     */
1077
    public function setFlagsLastModified(DateTime $flagsLastModified)
1078
    {
1079
        $this->flagsLastModified = $flagsLastModified;
1080
1081
        return $this;
1082
    }
1083
1084
    /**
1085
     * Get flagsLastModified
1086
     *
1087
     * @return \DateTime
1088
     */
1089
    public function getFlagsLastModified()
1090
    {
1091
        return $this->flagsLastModified;
1092
    }
1093
1094
    /**
1095
     * Get cacheId
1096
     *
1097
     * @return int
1098
     */
1099
    public function getCacheId()
1100
    {
1101
        return $this->cacheId;
1102
    }
1103
}
1104