diff --git a/src/Conditionals/Conditionable.php b/src/Conditionals/Conditionable.php new file mode 100644 index 0000000..90da38c --- /dev/null +++ b/src/Conditionals/Conditionable.php @@ -0,0 +1,10 @@ +get_conditionals() as $conditional ) { + public function check( Conditionable $conditionable ): bool { + foreach ( $conditionable->get_conditionals() as $conditional ) { $instance = $this->get_conditional( $conditional ); if ( ! $instance->is_met() ) { return false; diff --git a/src/Integrations/Integration.php b/src/Integrations/Integration.php index 0c0a682..68b901a 100644 --- a/src/Integrations/Integration.php +++ b/src/Integrations/Integration.php @@ -1,11 +1,12 @@