mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
24 lines
504 B
PHP
24 lines
504 B
PHP
<?php
|
|
|
|
namespace SilverStripe\SpamProtection\Tests\Stub;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\Forms\TextField;
|
|
use SilverStripe\SpamProtection\SpamProtector;
|
|
|
|
/**
|
|
* @package spamprotection
|
|
*/
|
|
class BarProtector implements SpamProtector, TestOnly
|
|
{
|
|
public function getFormField($name = null, $title = null, $value = null)
|
|
{
|
|
$title = $title ?: 'Bar';
|
|
return new TextField($name, $title, $value);
|
|
}
|
|
|
|
public function setFieldMapping($fieldMapping)
|
|
{
|
|
}
|
|
}
|