AttendeeExtraField
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 28
c 0
b 0
f 0
1
<?php
2
/**
3
 * AttendeeExtraField.php
4
 *
5
 * @author Bram de Leeuw
6
 * Date: 24/05/17
7
 */
8
9
namespace Broarm\EventTickets;
10
11
use DataObject;
12
13
/**
14
 * Class AttendeeExtraField
15
 *
16
 * @property string     Title
17
 * @property string     FieldName
18
 * @property \FormField FieldType
19
 * @property string     DefaultValue
20
 * @property string     ExtraClass
21
 * @property boolean    Required
22
 * @property boolean    Editable
23
 * @property int        Sort
24
 * @property int        EventID
25
 *
26
 * @method \CalendarEvent Event()
27
 * @method \HasManyList Options()
28
 * @deprecated deprecated after 1.1.5
29
 */
30
class AttendeeExtraField extends DataObject
31
{
32
    /**
33
     * Field name to be used in the AttendeeField (Composite field)
34
     *
35
     * @var string
36
     */
37
    protected $fieldName;
38
39
    private static $db = array(
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
40
        'Title' => 'Varchar(255)',
41
        'DefaultValue' => 'Varchar(255)',
42
        'ExtraClass' => 'Varchar(255)',
43
        'FieldName' => 'Varchar(255)',
44
        'Required' => 'Boolean',
45
        'Editable' => 'Boolean',
46
        'FieldType' => 'Enum("TextField,EmailField,CheckboxField,OptionsetField","TextField")',
47
        'Sort' => 'Int'
48
    );
49
50
    private static $has_one = array(
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
51
        'Event' => 'CalendarEvent'
52
    );
53
54
    private static $has_many = array(
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
55
        'Options' => 'Broarm\EventTickets\AttendeeExtraFieldOption'
56
    );
57
}