Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/laminas/laminas-captcha/src/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/laminas/laminas-captcha/src/Dumb.php

<?php

namespace Laminas\Captcha;

/**
 * Example dumb word-based captcha
 *
 * Note that only rendering is necessary for word-based captcha
 *
 * @todo This likely needs its own validation since it expects the word
 *     entered to be the strrev of the word stored.
 */
class Dumb extends AbstractWord
{
    /**
     * CAPTCHA label
     *
     * @var string
     */
    protected $label = 'Please type this word backwards';

    /**
     * Set the label for the CAPTCHA
     *
     * @param string $label
     * @return void
     */
    public function setLabel($label)
    {
        $this->label = $label;
    }

    /**
     * Retrieve the label for the CAPTCHA
     *
     * @return string
     */
    public function getLabel()
    {
        return $this->label;
    }

    /**
     * Retrieve optional view helper name to use when rendering this captcha
     *
     * @return string
     */
    public function getHelperName()
    {
        return 'captcha/dumb';
    }
}