PHPCSUtils 1.1.0

MissingArgumentError extends RuntimeException
in package

FinalYes

Exception for when a (conditionally) required parameter is not passed.

Tags
since
1.1.0

Table of Contents

Methods

create()  : MissingArgumentError
Create a new MissingArgumentError exception with a standardized start of the text.

Methods

create()

Create a new MissingArgumentError exception with a standardized start of the text.

public static create(int $position, string $name, string $message) : MissingArgumentError
Parameters
$position : int

The argument position in the function signature. 1-based.

$name : string

The argument name in the function signature.

$message : string

Arbitrary message text, which should indicate under what conditions the parameter is required.

Return values
MissingArgumentError

        
On this page

Search results