public function getConditionalLogic(): array
    {
        $conditionals = [];

        foreach ($this->config->get('conditional_logic') as $rules) {
            $conditional = new Conditional($rules, $this->parentKey);

            $conditionals[] = $conditional->toArray();
        }

        return $conditionals;
    }
public function getConditionalLogic(): array
    {
        $conditionals = [];

        foreach ($this->config->get('conditional_logic') as $rules) {
            $conditional = new Conditional($rules, $this->parentKey);

            $conditionals[] = $conditional->toArray();
        }

        return $conditionals;
    }
public function getConditionalLogic ( ) : array { $ conditionals = [ ] ; foreach ( $ this -> config -> get ( 'conditional_logic' ) as $ rules ) { $ conditional = new Conditional ( $ rules , $ this -> parentKey ) ; $ conditionals [ ] = $ conditional -> toArray ( ) ; } return $ conditionals ; }
Get the conditional logic.

@return array
Get the conditional logic .