3da68c2e49
Fix handling of validation groups. Also added test to cover the feature.
35 lines
764 B
PHP
35 lines
764 B
PHP
<?php
|
|
namespace DigiComp\SettingValidator\Tests\Functional\Fixtures;
|
|
|
|
use Neos\Flow\Annotations as Flow;
|
|
|
|
class TestValidationGroupsDefaultObject
|
|
{
|
|
/**
|
|
* @Flow\Validate(type="DigiComp.SettingValidator:Settings", options={"name": "GroupValidatorDefault"})
|
|
* @var bool
|
|
*/
|
|
protected $shouldBeTrue = false;
|
|
|
|
/**
|
|
* @Flow\Validate(type="DigiComp.SettingValidator:Settings", options={"name": "GroupValidatorCustom"})
|
|
* @var bool
|
|
*/
|
|
protected $shouldBeFalse = true;
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isShouldBeTrue(): bool
|
|
{
|
|
return $this->shouldBeTrue;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isShouldBeFalse(): bool
|
|
{
|
|
return $this->shouldBeFalse;
|
|
}
|
|
}
|