%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/diaspora/api/vendor/maennchen/zipstream-php/src/Exception/
Upload File :
Create Path :
Current File : /var/www/html/diaspora/api/vendor/maennchen/zipstream-php/src/Exception/InvalidOptionException.php

<?php

namespace ZipStream\Exception;

use ZipStream\Exception;

/**
 * This Exception gets invoked if an invalid parameter gets passed on as option
 *
 * @author Jonatan Männchen <jonatan@maennchen.ch>
 * @copyright Copyright (c) 2014, Jonatan Männchen
 */
class InvalidOptionException extends Exception
{
    /**
     * Constructor of the Exception
     *
     * @param String $optionName - The name of the Option
     * @param string[] $expectedValues - All possible Values
     * @param String $givenValue
     */
    public function __construct($optionName, $expectedValues = array(), $givenValue)
    {
        parent::__construct("Invalid Option $optionName. EXPECTED: " . implode(", ",
                $expectedValues) . " GIVEN: $givenValue");
    }
}

Zerion Mini Shell 1.0