|
@@ -1,12 +1,10 @@
|
|
|
<?php
|
|
|
|
|
|
- * This class enables use of scalar values with classes implementing iComparable
|
|
|
- * $Id: boxed_scalars.php,v 1.1 2006-12-03 23:20:08 marand Exp $
|
|
|
+ * This class enables use of scalar values with classes implementing Comparable_Interface
|
|
|
+ * $Id: boxed_scalars.php,v 1.2 2007-06-03 21:23:38 marand Exp $
|
|
|
*/
|
|
|
|
|
|
-require_once('misc.php');
|
|
|
-
|
|
|
-class boxed_int implements iComparable
|
|
|
+class boxed_int implements Comparable_Interface
|
|
|
{
|
|
|
protected $value;
|
|
|
|
|
@@ -15,7 +13,7 @@ class boxed_int implements iComparable
|
|
|
$this->value = $n;
|
|
|
}
|
|
|
|
|
|
- function cmp(iComparable $other)
|
|
|
+ function cmp(Comparable_Interface $other)
|
|
|
{
|
|
|
if ($this->value < $other->value)
|
|
|
return -1;
|