26 lines
495 B
PHP
26 lines
495 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Forms\Tests\ValidatorTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\Forms\Form;
|
|
use SilverStripe\Forms\ValidatorList;
|
|
|
|
/**
|
|
* Class TestValidatorList
|
|
*
|
|
* @package SilverStripe\Forms\Tests\ValidatorTest
|
|
*/
|
|
class TestValidatorList extends ValidatorList implements TestOnly
|
|
{
|
|
/**
|
|
* Allow us to access the form for test purposes.
|
|
*
|
|
* @return Form|null
|
|
*/
|
|
public function getForm(): ?Form
|
|
{
|
|
return $this->form;
|
|
}
|
|
}
|