public function setCleanupCallback($callback)
    {
        if (!is_null($callback)
            && !is_callable($callback)
        ) {
            throw new InvalidArgumentException("No callable function provided");
        }

        $this->cleanupCallback = $callback;

        return $this;
    }
public function setCleanupCallback($callback)
    {
        if (!is_null($callback)
            && !is_callable($callback)
        ) {
            throw new InvalidArgumentException("No callable function provided");
        }

        $this->cleanupCallback = $callback;

        return $this;
    }
public function setCleanupCallback ( $ callback ) { if ( ! is_null ( $ callback ) && ! is_callable ( $ callback ) ) { throw new InvalidArgumentException ( "No callable function provided" ) ; } $ this -> cleanupCallback = $ callback ; return $ this ; }
Set session cleanup callback function.

@param callable $callback Cleanup callback function.

@return $this
@throws InvalidArgumentException
Set session cleanup callback function .