Documentation

InvalidOptionException extends Exception
in package

This Exception gets invoked if an invalid parameter gets passed on as option

Tags
author

Jonatan Männchen jonatan@maennchen.ch

copyright

Copyright (c) 2014, Jonatan Männchen

Table of Contents

__construct()  : mixed
Constructor of the Exception

Methods

__construct()

Constructor of the Exception

public __construct(string $optionName[, array<string|int, string> $expectedValues = array() ], string $givenValue) : mixed
Parameters
$optionName : string
  • The name of the Option
$expectedValues : array<string|int, string> = array()
  • All possible Values
$givenValue : string
Return values
mixed

Search results