[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/Requests/src/Exception/ -> ArgumentCount.php (summary)

Exception for when an incorrect number of arguments are passed to a method. Typically, this exception is used when all arguments for a method are optional, but certain arguments need to be passed together, i.e. a method which can be called with no arguments or with two arguments, but not with one argument.

File Size: 47 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 function

  create()

Functions
Functions that are not part of a class:

create($expected, $received, $type)   X-Ref
Create a new argument count exception with a standardized text.

return: \WpOrg\Requests\Exception\ArgumentCount
param: string $expected The argument count expected as a phrase.
param: int    $received The actual argument count received.
param: string $type     Exception type.



Generated : Sun Apr 28 08:20:02 2024 Cross-referenced by PHPXref