silverstripe-multiform/tests/Stubs/MultiFormStepOne.php
Franco Springveldt 1331a60fd7 FIX PR review fixes
* removed @package references
* included stubs in the test namespaces
* updated various return types
* updated composr psr4 autoload classes
* doc update
2017-09-08 17:12:17 +12:00

24 lines
619 B
PHP

<?php
namespace SilverStripe\MultiForm\Tests\Stubs;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Forms\EmailField;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TextField;
use SilverStripe\MultiForm\Models\MultiFormStep;
class MultiFormTestStepOne extends MultiFormStep implements TestOnly
{
private static $next_steps = MultiFormTestStepTwo::class;
public function getFields()
{
return FieldList::create(
new TextField('FirstName', 'First name'),
new TextField('Surname', 'Surname'),
new EmailField('Email', 'Email address')
);
}
}