DigiComp.SettingValidator/Tests/Functional/Fixtures/TestObject.php

49 lines
911 B
PHP
Raw Normal View History

2017-06-02 21:58:33 +02:00
<?php
2020-03-10 14:48:57 +01:00
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
/**
* @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;
}
}