serp-spider/core

View on GitHub
src/Exception/RequestError/CaptchaException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @license see LICENSE
 */

namespace Serps\Exception\RequestError;

use Serps\Core\Captcha\CaptchaResponse;

class CaptchaException extends RequestErrorException
{

    /**
     * @var CaptchaResponse
     */
    protected $captcha;

    public function __construct(CaptchaResponse $captchaResponse)
    {
        $this->captcha = $captchaResponse;
    }

    /**
     * @return CaptchaResponse
     */
    public function getCaptcha()
    {
        return $this->captcha;
    }
}