Completed
Push — development ( ec29fe...c7aaa2 )
by Torben
43:55
created

Registration::getPaymentmethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace DERHANSEN\SfEventMgt\Domain\Model;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
/**
18
 * Registration
19
 *
20
 * @author Torben Hansen <[email protected]>
21
 */
22
class Registration extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
{
24
    /**
25
     * Firstname
26
     *
27
     * @var string
28
     * @validate NotEmpty
29
     */
30
    protected $firstname = '';
31
32
    /**
33
     * Lastname
34
     *
35
     * @var string
36
     * @validate NotEmpty
37
     */
38
    protected $lastname = '';
39
40
    /**
41
     * Title
42
     *
43
     * @var string
44
     */
45
    protected $title = '';
46
47
    /**
48
     * Company
49
     *
50
     * @var string
51
     */
52
    protected $company = '';
53
54
    /**
55
     * Address
56
     *
57
     * @var string
58
     */
59
    protected $address = '';
60
61
    /**
62
     * Zip
63
     *
64
     * @var string
65
     */
66
    protected $zip = '';
67
68
    /**
69
     * City
70
     *
71
     * @var string
72
     */
73
    protected $city = '';
74
75
    /**
76
     * Country
77
     *
78
     * @var string
79
     */
80
    protected $country = '';
81
82
    /**
83
     * Phone
84
     *
85
     * @var string
86
     */
87
    protected $phone = '';
88
89
    /**
90
     * E-Mail
91
     *
92
     * @var string
93
     * @validate NotEmpty, EmailAddress
94
     */
95
    protected $email = '';
96
97
    /**
98
     * Ignore notifications
99
     *
100
     * @var bool
101
     */
102
    protected $ignoreNotifications = false;
103
104
    /**
105
     * Gender
106
     *
107
     * @var string
108
     */
109
    protected $gender = '';
110
111
    /**
112
     * Date of birth
113
     *
114
     * @var \DateTime
115
     */
116
    protected $dateOfBirth = null;
117
118
    /**
119
     * Accept terms and conditions
120
     *
121
     * @var bool
122
     */
123
    protected $accepttc = false;
124
125
    /**
126
     * Confirmed
127
     *
128
     * @var bool
129
     */
130
    protected $confirmed = false;
131
132
    /**
133
     * Paid
134
     *
135
     * @var bool
136
     */
137
    protected $paid = false;
138
139
    /**
140
     * Notes
141
     *
142
     * @var string
143
     */
144
    protected $notes = '';
145
146
    /**
147
     * Event
148
     *
149
     * @var \DERHANSEN\SfEventMgt\Domain\Model\Event
150
     */
151
    protected $event = null;
152
153
    /**
154
     * Main registration (if available)
155
     *
156
     * @var \DERHANSEN\SfEventMgt\Domain\Model\Registration
157
     */
158
    protected $mainRegistration = null;
159
160
    /**
161
     * DateTime until the registration must be confirmed
162
     *
163
     * @var \DateTime
164
     */
165
    protected $confirmationUntil = null;
166
167
    /**
168
     * Indicates if record is hidden
169
     *
170
     * @var bool
171
     */
172
    protected $hidden = false;
173
174
    /**
175
     * Amount of registrations (if multiple registrations created by one user)
176
     *
177
     * @var int
178
     */
179
    protected $amountOfRegistrations = 1;
180
181
    /**
182
     * The language (e.g. de)
183
     *
184
     * @var string
185
     */
186
    protected $language = '';
187
188
    /**
189
     * reCaptcha
190
     *
191
     * @var string
192
     */
193
    protected $recaptcha = '';
194
195
    /**
196
     * FrontendUser if available
197
     *
198
     * @var \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
199
     */
200
    protected $feUser = null;
201
202
    /**
203
     * Payment method
204
     *
205
     * @var string
206
     */
207
    protected $paymentmethod = '';
208
209
    /**
210
     * Payment reference (e.g. from Payment provider)
211
     *
212
     * @var string
213
     */
214
    protected $paymentReference = '';
215
216
    /**
217
     * Flags if this is a registration on the waitlist
218
     *
219
     * @var bool
220
     */
221
    protected $waitlist = false;
222 1
223
    /**
224 1
     * Returns the firstname
225
     *
226
     * @return string $firstname
227
     */
228
    public function getFirstname()
229
    {
230
        return $this->firstname;
231
    }
232
233
    /**
234 11
     * Sets the firstname
235
     *
236 11
     * @param string $firstname Firstname
237 11
     *
238
     * @return void
239
     */
240
    public function setFirstname($firstname)
241
    {
242
        $this->firstname = $firstname;
243
    }
244 1
245
    /**
246 1
     * Returns the lastname
247
     *
248
     * @return string $lastname
249
     */
250
    public function getLastname()
251
    {
252
        return $this->lastname;
253
    }
254
255
    /**
256 11
     * Sets the lastname
257
     *
258 11
     * @param string $lastname Lastname
259 11
     *
260
     * @return void
261
     */
262
    public function setLastname($lastname)
263
    {
264
        $this->lastname = $lastname;
265
    }
266 1
267
    /**
268 1
     * Returns the title
269
     *
270
     * @return string $title
271
     */
272
    public function getTitle()
273
    {
274
        return $this->title;
275
    }
276
277
    /**
278 1
     * Sets the title
279
     *
280 1
     * @param string $title Title
281 1
     *
282
     * @return void
283
     */
284
    public function setTitle($title)
285
    {
286
        $this->title = $title;
287
    }
288 1
289
    /**
290 1
     * Returns the company
291
     *
292
     * @return string $company
293
     */
294
    public function getCompany()
295
    {
296
        return $this->company;
297
    }
298
299
    /**
300 1
     * Sets the company
301
     *
302 1
     * @param string $company Company
303 1
     *
304
     * @return void
305
     */
306
    public function setCompany($company)
307
    {
308
        $this->company = $company;
309
    }
310 1
311
    /**
312 1
     * Returns the address
313
     *
314
     * @return string $address
315
     */
316
    public function getAddress()
317
    {
318
        return $this->address;
319
    }
320
321
    /**
322 1
     * Sets the address
323
     *
324 1
     * @param string $address Address
325 1
     *
326
     * @return void
327
     */
328
    public function setAddress($address)
329
    {
330
        $this->address = $address;
331
    }
332 1
333
    /**
334 1
     * Returns the zip
335
     *
336
     * @return string $zip
337
     */
338
    public function getZip()
339
    {
340
        return $this->zip;
341
    }
342
343
    /**
344 1
     * Sets the zip
345
     *
346 1
     * @param string $zip Zip
347 1
     *
348
     * @return void
349
     */
350
    public function setZip($zip)
351
    {
352
        $this->zip = $zip;
353
    }
354 1
355
    /**
356 1
     * Returns the city
357
     *
358
     * @return string $city
359
     */
360
    public function getCity()
361
    {
362
        return $this->city;
363
    }
364
365
    /**
366 1
     * Sets the city
367
     *
368 1
     * @param string $city City
369 1
     *
370
     * @return void
371
     */
372
    public function setCity($city)
373
    {
374
        $this->city = $city;
375
    }
376 1
377
    /**
378 1
     * Returns the country
379
     *
380
     * @return string $country
381
     */
382
    public function getCountry()
383
    {
384
        return $this->country;
385
    }
386
387
    /**
388 1
     * Sets the country
389
     *
390 1
     * @param string $country Country
391 1
     *
392
     * @return void
393
     */
394
    public function setCountry($country)
395
    {
396
        $this->country = $country;
397
    }
398 1
399
    /**
400 1
     * Returns the phone
401
     *
402
     * @return string $phone
403
     */
404
    public function getPhone()
405
    {
406
        return $this->phone;
407
    }
408
409
    /**
410 1
     * Sets the phone
411
     *
412 1
     * @param string $phone Phone
413 1
     *
414
     * @return void
415
     */
416
    public function setPhone($phone)
417
    {
418
        $this->phone = $phone;
419
    }
420 7
421
    /**
422 7
     * Returns the email
423
     *
424
     * @return string $email
425
     */
426
    public function getEmail()
427
    {
428
        return $this->email;
429
    }
430
431
    /**
432 20
     * Sets the email
433
     *
434 20
     * @param string $email E-Mail
435 20
     *
436
     * @return void
437
     */
438
    public function setEmail($email)
439
    {
440
        $this->email = $email;
441
    }
442 11
443
    /**
444 11
     * Returns boolean state of ignoreNotifications
445
     *
446
     * @return bool
447
     */
448
    public function isIgnoreNotifications()
449
    {
450
        return $this->ignoreNotifications;
451
    }
452 2
453
    /**
454 2
     * Returns ignoreNotifications
455
     *
456
     * @return bool
457
     */
458
    public function getIgnoreNotifications()
459
    {
460
        return $this->ignoreNotifications;
461
    }
462
463
    /**
464 7
     * Sets ignoreNotifications
465
     *
466 7
     * @param bool $ignoreNotifications IgnoreNotifications
467 7
     *
468
     * @return void
469
     */
470
    public function setIgnoreNotifications($ignoreNotifications)
471
    {
472
        $this->ignoreNotifications = $ignoreNotifications;
473
    }
474 1
475
    /**
476 1
     * Returns the gender
477
     *
478
     * @return string $gender
479
     */
480
    public function getGender()
481
    {
482
        return $this->gender;
483
    }
484
485
    /**
486 1
     * Sets the gender
487
     *
488 1
     * @param string $gender Gender
489 1
     *
490
     * @return void
491
     */
492
    public function setGender($gender)
493
    {
494
        $this->gender = $gender;
495
    }
496
497
    /**
498 1
     * Sets the date of birth
499
     *
500 1
     * @param \DateTime $dateOfBirth DateOfBirth
501 1
     *
502
     * @return void
503
     */
504
    public function setDateOfBirth($dateOfBirth)
505
    {
506
        $this->dateOfBirth = $dateOfBirth;
507
    }
508 1
509
    /**
510 1
     * Returns the date of birth
511
     *
512
     * @return \DateTime
513
     */
514
    public function getDateOfBirth()
515
    {
516
        return $this->dateOfBirth;
517
    }
518 1
519
    /**
520 1
     * Returns accept terms and conditions
521
     *
522
     * @return bool $accepttc
523
     */
524
    public function getAccepttc()
525
    {
526
        return $this->accepttc;
527
    }
528
529
    /**
530 1
     * Sets accept terms and conditions
531
     *
532 1
     * @param bool $accepttc Accept terms and conditions
533 1
     *
534
     * @return void
535
     */
536
    public function setAccepttc($accepttc)
537
    {
538
        $this->accepttc = $accepttc;
539
    }
540 1
541
    /**
542 1
     * Returns the confirmed
543
     *
544
     * @return bool $confirmed Confirmed
545
     */
546
    public function getConfirmed()
547
    {
548
        return $this->confirmed;
549
    }
550
551
    /**
552 5
     * Sets the confirmed
553
     *
554 5
     * @param bool $confirmed Confirmed
555 5
     *
556
     * @return void
557
     */
558
    public function setConfirmed($confirmed)
559
    {
560
        $this->confirmed = $confirmed;
561
    }
562 4
563
    /**
564 4
     * Returns the boolean state of confirmed
565
     *
566
     * @return bool
567
     */
568
    public function isConfirmed()
569
    {
570
        return $this->confirmed;
571
    }
572 1
573
    /**
574 1
     * Returns the paid
575
     *
576
     * @return bool $paid
577
     */
578
    public function getPaid()
579
    {
580
        return $this->paid;
581
    }
582
583
    /**
584 2
     * Sets the paid
585
     *
586 2
     * @param bool $paid Paid
587 2
     *
588
     * @return void
589
     */
590
    public function setPaid($paid)
591
    {
592
        $this->paid = $paid;
593
    }
594 1
595
    /**
596 1
     * Returns the boolean state of paid
597
     *
598
     * @return bool
599
     */
600
    public function isPaid()
601
    {
602
        return $this->paid;
603
    }
604
605
    /**
606 1
     * Sets the event
607
     *
608 1
     * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event
609 1
     *
610
     * @return void
611
     */
612
    public function setEvent($event)
613
    {
614
        $this->event = $event;
615
    }
616 1
617
    /**
618 1
     * Returns the event
619
     *
620
     * @return \DERHANSEN\SfEventMgt\Domain\Model\Event
621
     */
622
    public function getEvent()
623
    {
624
        return $this->event;
625
    }
626
627
    /**
628 1
     * Sets the mainRegistration
629
     *
630 1
     * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration $registration Registration
631 1
     *
632
     * @return void
633
     */
634
    public function setMainRegistration($registration)
635
    {
636
        $this->mainRegistration = $registration;
637
    }
638 2
639
    /**
640 2
     * Returns the event
641
     *
642
     * @return \DERHANSEN\SfEventMgt\Domain\Model\Registration
643
     */
644
    public function getMainRegistration()
645
    {
646
        return $this->mainRegistration;
647
    }
648
649
    /**
650 1
     * Setter for notes
651
     *
652 1
     * @param string $notes Notes
653 1
     *
654
     * @return void
655
     */
656
    public function setNotes($notes)
657
    {
658
        $this->notes = $notes;
659
    }
660 1
661
    /**
662 1
     * Getter for notes
663
     *
664
     * @return string
665
     */
666
    public function getNotes()
667
    {
668
        return $this->notes;
669
    }
670
671
    /**
672 1
     * Sets confirmUntil
673
     *
674 1
     * @param \DateTime $confirmationUntil Confirmation Until
675 1
     *
676
     * @return void
677
     */
678
    public function setConfirmationUntil($confirmationUntil)
679
    {
680
        $this->confirmationUntil = $confirmationUntil;
681
    }
682 1
683
    /**
684 1
     * Returns confirmationUntil
685
     *
686
     * @return \DateTime
687
     */
688
    public function getConfirmationUntil()
689
    {
690
        return $this->confirmationUntil;
691
    }
692
693
    /**
694 1
     * Sets hidden
695
     *
696 1
     * @param bool $hidden Hidden
697 1
     *
698
     * @return void
699
     */
700
    public function setHidden($hidden)
701
    {
702
        $this->hidden = $hidden;
703
    }
704 2
705
    /**
706 2
     * Returns hidden
707
     *
708
     * @return bool
709
     */
710
    public function getHidden()
711
    {
712
        return $this->hidden;
713
    }
714 2
715
    /**
716 2
     * Returns amountOfRegistrations
717
     *
718
     * @return int
719
     */
720
    public function getAmountOfRegistrations()
721
    {
722
        return $this->amountOfRegistrations;
723
    }
724
725
    /**
726 1
     * Sets amountOfRegistrations
727
     *
728 1
     * @param int $amountOfRegistrations AmountOfRegistrations
729 1
     *
730
     * @return void
731
     */
732
    public function setAmountOfRegistrations($amountOfRegistrations)
733
    {
734
        $this->amountOfRegistrations = $amountOfRegistrations;
735
    }
736 20
737
    /**
738 20
     * Returns the language
739
     *
740
     * @return string
741
     */
742
    public function getLanguage()
743
    {
744
        return $this->language;
745
    }
746
747 1
    /**
748
     * Sets the language
749 1
     *
750 1
     * @param string $language
751
     * @return void
752
     */
753
    public function setLanguage($language)
754
    {
755
        $this->language = $language;
756
    }
757 2
758
    /**
759 2
     * Returns recaptcha
760
     *
761
     * @return string
762
     */
763
    public function getRecaptcha()
764
    {
765
        return $this->recaptcha;
766
    }
767
768 1
    /**
769
     * Sets recaptcha
770 1
     *
771 1
     * @param string $recaptcha
772
     * @return void
773
     */
774
    public function setRecaptcha($recaptcha)
775
    {
776
        $this->recaptcha = $recaptcha;
777
    }
778 2
779
    /**
780 2
     * Returns the frontenduser
781
     *
782
     * @return \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
783
     */
784
    public function getFeUser()
785
    {
786
        return $this->feUser;
787
    }
788
789 1
    /**
790
     * Sets the frontenduser
791 1
     *
792 1
     * @param \TYPO3\CMS\Extbase\Domain\Model\FrontendUser $feUser
793
     * @return void
794
     */
795
    public function setFeUser($feUser)
796
    {
797
        $this->feUser = $feUser;
798
    }
799 2
800
    /**
801 2
     * Returns the payment method
802
     *
803
     * @return string
804
     */
805
    public function getPaymentmethod()
806
    {
807
        return $this->paymentmethod;
808
    }
809
810 1
    /**
811
     * Sets the payment method
812 1
     *
813 1
     * @param string $paymentmethod
814
     * @return void
815
     */
816
    public function setPaymentmethod($paymentmethod)
817
    {
818
        $this->paymentmethod = $paymentmethod;
819
    }
820 2
821
    /**
822 2
     * Returns paymentReference
823
     *
824
     * @return string
825
     */
826
    public function getPaymentReference()
827
    {
828
        return $this->paymentReference;
829
    }
830
831 1
    /**
832
     * Sets paymentReference
833 1
     *
834 1
     * @param string $paymentReference
835
     * @return void
836
     */
837
    public function setPaymentReference($paymentReference)
838
    {
839
        $this->paymentReference = $paymentReference;
840
    }
841
842
    /**
843
     * Returns waitlist
844
     *
845
     * @return boolean
846
     */
847
    public function getWaitlist()
848
    {
849
        return $this->waitlist;
850
    }
851
852
    /**
853
     * Sets waitlist
854
     *
855
     * @param boolean $waitlist
856
     * @return void
857
     */
858
    public function setWaitlist($waitlist)
859
    {
860
        $this->waitlist = $waitlist;
861
    }
862
}
863