Redaxscript\Captcha::getSolution PHP Method

getSolution() public method

get the solution
Since: 2.6.0
public getSolution ( ) : integer
return integer
    public function getSolution()
    {
        return $this->_solution;
    }

Usage Example

Example #1
0
 /**
  * testGetSolution
  *
  * @since 2.2.0
  */
 public function testGetSolution()
 {
     /* setup */
     $captcha = new Captcha($this->_language);
     /* result */
     $raw = $captcha->getSolution('raw');
     $hash = $captcha->getSolution('hash');
     /* compare */
     $this->assertEquals($hash, sha1($raw));
 }
All Usage Examples Of Redaxscript\Captcha::getSolution