50 lines
937 B
PHP
50 lines
937 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DigiComp\SettingValidator\Tests\Functional\Fixtures;
|
|
|
|
use Neos\Flow\Annotations as Flow;
|
|
|
|
class TestObject
|
|
{
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected bool $shouldBeTrue = true;
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected bool $shouldBeFalse = true;
|
|
|
|
/**
|
|
* @Flow\Validate(type="DigiComp.SettingValidator:Settings", options={"name"="TrueValidator"})
|
|
* @var bool
|
|
*/
|
|
protected bool $shouldBeTrueAndValidatedByAnnotation = false;
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isShouldBeTrue(): bool
|
|
{
|
|
return $this->shouldBeTrue;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isShouldBeFalse(): bool
|
|
{
|
|
return $this->shouldBeFalse;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isShouldBeTrueAndValidatedByAnnotation(): bool
|
|
{
|
|
return $this->shouldBeTrueAndValidatedByAnnotation;
|
|
}
|
|
}
|