public function registerDefaultConditions()
    {
        if (false === $this->defaultConditionsWereRegistered) {
            $this->defaultConditionsWereRegistered = true;

            $this->registerCondition(
                FieldHasValueCondition::CONDITION_NAME,
                FieldHasValueCondition::class
            )->registerCondition(
                FieldHasErrorCondition::CONDITION_NAME,
                FieldHasErrorCondition::class
            )->registerCondition(
                FieldIsValidCondition::CONDITION_NAME,
                FieldIsValidCondition::class
            )->registerCondition(
                FieldIsEmptyCondition::CONDITION_NAME,
                FieldIsEmptyCondition::class
            )->registerCondition(
                FieldIsFilledCondition::CONDITION_IDENTIFIER,
                FieldIsFilledCondition::class
            )->registerCondition(
                FieldCountValuesCondition::CONDITION_IDENTIFIER,
                FieldCountValuesCondition::class
            );
        }
    }
public function registerDefaultConditions()
    {
        if (false === $this->defaultConditionsWereRegistered) {
            $this->defaultConditionsWereRegistered = true;

            $this->registerCondition(
                FieldHasValueCondition::CONDITION_NAME,
                FieldHasValueCondition::class
            )->registerCondition(
                FieldHasErrorCondition::CONDITION_NAME,
                FieldHasErrorCondition::class
            )->registerCondition(
                FieldIsValidCondition::CONDITION_NAME,
                FieldIsValidCondition::class
            )->registerCondition(
                FieldIsEmptyCondition::CONDITION_NAME,
                FieldIsEmptyCondition::class
            )->registerCondition(
                FieldIsFilledCondition::CONDITION_IDENTIFIER,
                FieldIsFilledCondition::class
            )->registerCondition(
                FieldCountValuesCondition::CONDITION_IDENTIFIER,
                FieldCountValuesCondition::class
            );
        }
    }
public function registerDefaultConditions ( ) { if ( false === $ this -> defaultConditionsWereRegistered ) { $ this -> defaultConditionsWereRegistered = true ; $ this -> registerCondition ( FieldHasValueCondition :: CONDITION_NAME , FieldHasValueCondition :: class ) -> registerCondition ( FieldHasErrorCondition :: CONDITION_NAME , FieldHasErrorCondition :: class ) -> registerCondition ( FieldIsValidCondition :: CONDITION_NAME , FieldIsValidCondition :: class ) -> registerCondition ( FieldIsEmptyCondition :: CONDITION_NAME , FieldIsEmptyCondition :: class ) -> registerCondition ( FieldIsFilledCondition :: CONDITION_IDENTIFIER , FieldIsFilledCondition :: class ) -> registerCondition ( FieldCountValuesCondition :: CONDITION_IDENTIFIER , FieldCountValuesCondition :: class ) ; } }
Registers all default conditions from FormZ core.
Registers all default conditions from FormZ core .