src/Comparison/IntComparer.php
public function setCallback(Closure $callback = null)
    {
        if ($this->callback !== null || $callback === null) {
            throw new \RuntimeException("Cannot redeclare this comparer callback.");
        }

        $this->callback = Closure::bind($callback, $this, get_called_class());
    }
public function setCallback(Closure $callback = null)
    {
        if ($this->callback !== null || $callback === null) {
            throw new \RuntimeException("Cannot redeclare this comparer callback.");
        }

        $this->callback = Closure::bind($callback, $this, get_called_class());
    }
public function setCallback ( Closure $ callback = null ) { if ( $ this -> callback !== null || $ callback === null ) { throw new \ RuntimeException ( "Cannot redeclare this comparer callback." ) ; } $ this -> callback = Closure :: bind ( $ callback , $ this , get_called_class ( ) ) ; }
This comparer does not allow to set the callback outside this class.

@param Closure $callback The new callback.

@throws \RuntimeException
This comparer does not allow to set the callback outside this class .