Location: PHPKode > projects > PHP Business Rules > test/test_facts.php
<?php
	require_once('phprules/phprules.php');

	class A extends Fact
	{
	 	var $a;
	 	var $b;
	 	
	 	function __construct($a,$b) {
	 		$this->a = $a;
	 		$this->b = $b;
	 	}
	 	
	 	function getParaif() {
	 		return 'hi';
	 	}
	}
	
	class B extends Fact
	{
		var $c;
		var $d;
		
		function __construct($c,$d) {
			$this->c = $c;
			$this->d = $d;
		}
	}
	
	class C extends Fact
	{
		var $e;
		var $f;
		
		function __construct($e,$f) {
			$this->e = $e;
			$this->f = $f;
		}
	}
	
	class ActionComponent1 {
		function do_action($fact) {
			print_r($fact);
		}
	}
 ?>
Return current item: PHP Business Rules