Completed
Push — master ( eb92ab...a3e742 )
by Robbie
11s
created

MultiFormTestStepOne::getFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace SilverStripe\MultiForm\Tests\Stubs;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\Forms\EmailField;
7
use SilverStripe\Forms\FieldList;
8
use SilverStripe\Forms\TextField;
9
use SilverStripe\MultiForm\Models\MultiFormStep;
10
11
class MultiFormTestStepOne extends MultiFormStep implements TestOnly
12
{
13
    private static $next_steps = MultiFormTestStepTwo::class;
0 ignored issues
show
Unused Code introduced by
The property $next_steps is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
14
15
    public function getFields()
16
    {
17
        return FieldList::create(
18
            new TextField('FirstName', 'First name'),
19
            new TextField('Surname', 'Surname'),
20
            new EmailField('Email', 'Email address')
21
        );
22
    }
23
}
24