. */ declare(strict_types=1); namespace App\Validator\Constraints; use Symfony\Component\Validator\Constraint; /** * Constraints the parent property on StructuralDBElement objects in the way, that neither the object self or any * of its children can be assigned. * * @Annotation */ class NoneOfItsChildren extends Constraint { /** * @var string The message used if it is tried to assign a object as its own parent */ public $self_message = 'validator.noneofitschild.self'; /** * @var string The message used if it is tried to use one of the children for as parent */ public $children_message = 'validator.noneofitschild.children'; }