src/Charcoal/Admin/Action/Object/RevertRevisionAction.php
protected function setRevNum($revNum)
    {
        if (!is_numeric($revNum)) {
            throw new InvalidArgumentException(sprintf(
                'Revision must be an integer, received %s.',
                (is_object($revNum) ? get_class($revNum) : gettype($revNum))
            ));
        }

        $this->revNum = (int)$revNum;

        return $this;
    }
protected function setRevNum($revNum)
    {
        if (!is_numeric($revNum)) {
            throw new InvalidArgumentException(sprintf(
                'Revision must be an integer, received %s.',
                (is_object($revNum) ? get_class($revNum) : gettype($revNum))
            ));
        }

        $this->revNum = (int)$revNum;

        return $this;
    }
protected function setRevNum ( $ revNum ) { if ( ! is_numeric ( $ revNum ) ) { throw new InvalidArgumentException ( sprintf ( 'Revision must be an integer, received %s.' , ( is_object ( $ revNum ) ? get_class ( $ revNum ) : gettype ( $ revNum ) ) ) ) ; } $ this -> revNum = ( int ) $ revNum ; return $ this ; }
Set the revision number to restore.

@param  integer $revNum The revision number to load.
@throws InvalidArgumentException If the given revision is invalid.
@return ObjectContainerInterface Chainable
Set the revision number to restore .