<?php namespace Doctrine\Common; /** * Comparable interface that allows to compare two value objects to each other for similarity. * * @link www.doctrine-project.org * @since 2.2 * @author Benjamin Eberlei <kontakt@beberlei.de> * @author Guilherme Blanco <guilhermeblanco@hotmail.com> */ interface Comparable { /** * Compares the current object to the passed $other. * * Returns 0 if they are semantically equal, 1 if the other object * is less than the current one, or -1 if its more than the current one. * * This method should not check for identity using ===, only for semantical equality for example * when two different DateTime instances point to the exact same Date + TZ. * * @param mixed $other * * @return int */ public function compareTo($other); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Persistence | Folder | 0755 |
|
|
Proxy | Folder | 0755 |
|
|
Reflection | Folder | 0755 |
|
|
Util | Folder | 0755 |
|
|
ClassLoader.php | File | 7.81 KB | 0644 |
|
CommonException.php | File | 283 B | 0644 |
|
Comparable.php | File | 839 B | 0644 |
|
EventArgs.php | File | 2.43 KB | 0644 |
|
EventManager.php | File | 5.19 KB | 0644 |
|
EventSubscriber.php | File | 1.63 KB | 0644 |
|
Lexer.php | File | 699 B | 0644 |
|
NotifyPropertyChanged.php | File | 1.59 KB | 0644 |
|
PropertyChangedListener.php | File | 1.82 KB | 0644 |
|
Version.php | File | 1.04 KB | 0644 |
|