mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-29 21:06:20 +00:00
30 lines
465 B
PHP
30 lines
465 B
PHP
|
<?php
|
||
|
|
||
|
namespace Gregwar\Captcha;
|
||
|
|
||
|
/**
|
||
|
* A Captcha builder
|
||
|
*/
|
||
|
interface CaptchaBuilderInterface
|
||
|
{
|
||
|
/**
|
||
|
* Builds the code
|
||
|
*/
|
||
|
public function build($width, $height, $font, $fingerprint);
|
||
|
|
||
|
/**
|
||
|
* Saves the code to a file
|
||
|
*/
|
||
|
public function save($filename, $quality);
|
||
|
|
||
|
/**
|
||
|
* Gets the image contents
|
||
|
*/
|
||
|
public function get($quality);
|
||
|
|
||
|
/**
|
||
|
* Outputs the image
|
||
|
*/
|
||
|
public function output($quality);
|
||
|
}
|