Location: PHPKode > scripts > Phinq > phinq-1-0/tests/helpers.php
<?php

	namespace Phinq\Tests;

	use Phinq\EqualityComparer;

	class IdComparer implements EqualityComparer {
		public function equals($a, $b) {
			return $a->id === $b->id ? 0 : ($a->id < $b->id ? -1 : 1);
		}
	}

	class Sphinqter {
		public $id;
		public $foo;

		public function __construct($id = null, $foo = null) {
			$this->id = $id;
			$this->foo = $foo;
		}
	}

?>
Return current item: Phinq