Completed
Branch FET/reg-form-builder/extract-a... (6e8a58)
by
unknown
35:36 queued 25:38
created

AutoCopyAttendeeInfoForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
1
<?php
2
3
namespace EventEspresso\core\domain\services\registration\form\v1;
4
5
use EE_Form_Section_HTML;
6
use EEH_Template;
7
8
class AutoCopyAttendeeInfoForm extends EE_Form_Section_HTML
9
{
10
11
    /**
12
     * CopyAttendeeInfoForm constructor.
13
     */
14
    public function __construct(string $slug)
15
    {
16
        parent::__construct(
17
            EEH_Template::locate_template(
18
                SPCO_REG_STEPS_PATH . $slug . '/_auto_copy_attendee_info.template.php',
19
                apply_filters(
20
                    'FHEE__EE_SPCO_Reg_Step_Attendee_Information__auto_copy_attendee_info__template_args',
21
                    []
22
                ),
23
                true,
24
                true
25
            )
26
        );
27
    }
28
}
29