PHP Classes

File: src/Config/Config.php

Recommend this page to a friend!
  Packages of Kacper Rowinski   OneClickCaptcha   src/Config/Config.php   Download  
File: src/Config/Config.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: OneClickCaptcha
CAPTCHA validation based on user clicks on circles
Author: By
Last change: Update of src/Config/Config.php
Date: 2 days ago
Size: 2,026 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

namespace
OneClickCaptcha\Config;

class
Config
{
   
/**
     * Background img width
     */
   
private int $backgroundWidth = 400;
   
/**
     * Background img height
     */
   
private int $backgroundHeight = 200;
   
/**
     * Image color
     */
   
private string $backgroundColor = '#000';
   
/**
     * Fake circle amount
     */
   
private int $circleAmount = 3;
   
/**
     * Circle size on img
     */
   
private int $circleSize = 60;
   
/**
     * Circle colors
     */
   
private string $circleColor = '#FFF';

    public function
getBackgroundColor(): string
   
{
        return
$this->backgroundColor;
    }

    public function
setBackgroundColor(string $backgroundColor): self
   
{
       
$this->backgroundColor = $backgroundColor;

        return
$this;
    }

    public function
getBackgroundHeight(): int
   
{
        return
$this->backgroundHeight;
    }

    public function
setBackgroundHeight(int $backgroundHeight): self
   
{
       
$this->backgroundHeight = $backgroundHeight;

        return
$this;
    }

    public function
getBackgroundWidth(): int
   
{
        return
$this->backgroundWidth;
    }

    public function
setBackgroundWidth(int $backgroundWidth): self
   
{
       
$this->backgroundWidth = $backgroundWidth;

        return
$this;
    }

    public function
getCircleAmount(): int
   
{
        return
$this->circleAmount;
    }

    public function
setCircleAmount(int $circleAmount): self
   
{
       
$this->circleAmount = $circleAmount;

        return
$this;
    }

    public function
getCircleColor(): string
   
{
        return
$this->circleColor;
    }

    public function
setCircleColor(string $circleColor): self
   
{
       
$this->circleColor = $circleColor;

        return
$this;
    }

    public function
getCircleSize(): int
   
{
        return
$this->circleSize;
    }

    public function
setCircleSize(int $circleSize): self
   
{
       
$this->circleSize = $circleSize;

        return
$this;
    }
}