mirror of
https://git.d3data.de/3rdParty/captcha-module.git
synced 2024-11-10 00:53:12 +01:00
22 lines
420 B
PHP
22 lines
420 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OxidProfessionalServices\Captcha\Application\Shared;
|
|
|
|
use OxidProfessionalServices\Captcha\Application\Core\Captcha as CaptchaCore;
|
|
|
|
trait Captcha
|
|
{
|
|
protected ?CaptchaCore $captcha;
|
|
|
|
public function getCaptcha(): CaptchaCore
|
|
{
|
|
if (!$this->captcha) {
|
|
$this->captcha = CaptchaCore::getInstance();
|
|
}
|
|
|
|
return $this->captcha;
|
|
}
|
|
}
|