Redaxscript\Captcha::getTask PHP Method

getTask() public method

get the task
Since: 2.0.0
public getTask ( ) : string
return string
    public function getTask()
    {
        return $this->_task;
    }

Usage Example

Example #1
0
 /**
  * testGetTask
  *
  * @since 2.2.0
  */
 public function testGetTask()
 {
     /* setup */
     $captcha = new Captcha($this->_language);
     /* result */
     $task = $captcha->getTask();
     /* compare */
     $this->assertTrue(is_string($task));
 }
All Usage Examples Of Redaxscript\Captcha::getTask