2017-06-02 21:58:33 +02:00
|
|
|
<?php
|
|
|
|
namespace DigiComp\SettingValidator\Tests\Functional\Fixtures;
|
|
|
|
|
|
|
|
use Neos\Flow\Annotations as Flow;
|
|
|
|
|
|
|
|
class TestObject
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
protected $shouldBeTrue = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
protected $shouldBeFalse = true;
|
|
|
|
|
|
|
|
/**
|
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
|
|
|
|
*/
|
|
|
|
protected $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;
|
|
|
|
}
|
|
|
|
}
|