public function setAllowSkipping($allowSkipping)
    {
        if (is_bool($allowSkipping)) {
            $this->allowSkipping = $allowSkipping;
        } else {
            $msg = "AllowSkipping must be a boolean, '" . gettype($allowSkipping) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }