mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
1331a60fd7
* removed @package references * included stubs in the test namespaces * updated various return types * updated composr psr4 autoload classes * doc update
24 lines
619 B
PHP
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')
|
|
);
|
|
}
|
|
}
|