Redaxscript\Captcha::getSolution PHP 메소드

getSolution() 공개 메소드

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

Usage 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