2017-06-02 21:58:33 +02:00
|
|
|
<?php
|
2020-03-10 14:48:57 +01:00
|
|
|
|
2022-05-02 09:56:09 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-06-02 21:58:33 +02:00
|
|
|
namespace DigiComp\SettingValidator\Tests\Functional\Fixtures;
|
|
|
|
|
|
|
|
use Neos\Flow\Annotations as Flow;
|
|
|
|
|
|
|
|
class TestObject
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
2020-05-04 22:19:37 +02:00
|
|
|
protected bool $shouldBeTrue = true;
|
2017-06-02 21:58:33 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
2020-05-04 22:19:37 +02:00
|
|
|
protected bool $shouldBeFalse = true;
|
2017-06-02 21:58:33 +02:00
|
|
|
|
|
|
|
/**
|
2018-11-07 17:19:04 +01:00
|
|
|
* @Flow\Validate(type="DigiComp.SettingValidator:Settings", options={"name"="TrueValidator"})
|
2017-06-02 21:58:33 +02:00
|
|
|
* @var bool
|
|
|
|
*/
|
2020-05-04 22:19:37 +02:00
|
|
|
protected bool $shouldBeTrueAndValidatedByAnnotation = false;
|
2017-06-02 21:58:33 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @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;
|
|
|
|
}
|
|
|
|
}
|