2017-07-07 04:23:01 +02:00
|
|
|
<?php
|
|
|
|
|
2017-08-28 00:53:32 +02:00
|
|
|
namespace SilverStripe\SpamProtection\Tests\Stub;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\Forms\TextField;
|
|
|
|
use SilverStripe\SpamProtection\SpamProtector;
|
|
|
|
|
|
|
|
class Protector implements SpamProtector, TestOnly
|
2017-07-07 04:23:01 +02:00
|
|
|
{
|
|
|
|
public function getFormField($name = null, $title = null, $value = null)
|
|
|
|
{
|
|
|
|
return new TextField($name, 'Foo', $value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setFieldMapping($fieldMapping)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|