芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/portal.pulsehost.co.uk/vendor/punic/punic/src/Exception/ValueNotInList.php
$allowedValues The list of valid values * @param \Exception $previous The previous exception used for the exception chaining */ public function __construct($value, $allowedValues, $previous = null) { $this->value = $value; $this->allowedValues = $allowedValues; $message = "'$value' is not valid. Acceptable values are: '".implode("', '", $allowedValues)."'"; parent::__construct($message, \Punic\Exception::VALUE_NOT_IN_LIST, $previous); } /** * Retrieves the invalid value. * * @return mixed */ public function getValue() { return $this->value; } /** * Retrieves the list of valid values. * * @return array
*/ public function getAllowedValues() { return $this->allowedValues; } }