rep_install(); } /** * @return array */ public function rep_instances(): array { $operators = array( new Operator_Equal(), new Operator_Not_Equal(), new Operator_Empty(), new Operator_Not_Empty(), new Operator_Greater(), new Operator_Greater_Or_Equal(), new Operator_Less(), new Operator_Less_Or_Equal(), new Operator_Between(), new Operator_Not_Between(), new Operator_In_The_List(), new Operator_Not_In_The_List(), new Operator_Contain(), new Operator_Not_Contain(), new Operator_Render_State(), ); return apply_filters( 'jet-form-builder/conditional-block/operators', $operators ); } /** * @param string $slug * * @throws Repository_Exception */ public function isset_operator( string $slug ) { $this->rep_throw_if_undefined( $slug ); } /** * @param string $slug * * @return Base_Operator */ public function get_operator( string $slug ): Base_Operator { return $this->rep_get_item_or_die( $slug ); } public function to_array(): array { return Array_Tools::to_array( $this->rep_get_items() ); } }