File "InvalidOptionException.php"

Full Path: /home/isoftco/public_html/hrm/vendor/maennchen/zipstream-php/src/Exception/InvalidOptionException.php
File size: 709 bytes
MIME-type: text/x-php
Charset: utf-8

<?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");
	}
}