Completed
Pull Request — master (#63)
by Franco
09:30
created

MultiFormTestStepTwo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFields() 0 6 1
1
<?php
2
namespace SilverStripe\MultiForm\Tests;
3
4
use SilverStripe\Dev\TestOnly;
5
use SilverStripe\Forms\FieldList;
6
use SilverStripe\Forms\TextareaField;
7
use SilverStripe\MultiForm\Models\MultiFormStep;
8
9
/**
10
 * @package multiform
11
 * @subpackage tests
12
 */
13
class MultiFormTestStepTwo extends MultiFormStep implements TestOnly
14
{
15
    public static $next_steps = MultiFormTestStepThree::class;
16
17
    public function getFields()
18
    {
19
        return new FieldList(
20
            new TextareaField('Comments', 'Tell us a bit about yourself...')
21
        );
22
    }
23
}
24