Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
29 lines
839 B
PHP
29 lines
839 B
PHP
<?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);
|
|
}
|