PHP Class Respect\Validation\Exceptions\ValidationException

Inheritance: extends InvalidArgumentExceptio\InvalidArgumentException, implements ExceptionInterface
显示文件 Open project: respect/validation Class Usage Examples

Public Properties

Property Type Description
$defaultTemplates

Protected Properties

Property Type Description
$id
$mode
$name
$params
$template

Public Methods

Method Description
__toString ( )
chooseTemplate ( )
configure ( $name, array $params = [] )
format ( $template, array $vars = [] )
getId ( )
getMainMessage ( )
getName ( )
getParam ( $name )
getParams ( )
getTemplate ( )
guessId ( )
hasCustomTemplate ( )
hasParam ( $name )
setId ( $id )
setMode ( $mode )
setName ( $name )
setParam ( $key, $value )
setParams ( array $params )
setTemplate ( $template )
stringify ( mixed $value, integer $depth = 1 ) : string
stringifyArray ( array $value, integer $depth = 1 ) : string
stringifyObject ( mixed $value, integer $depth = 2 ) : string

Protected Methods

Method Description
buildTemplate ( )

Private Methods

Method Description
buildMessage ( )

Method Details

__toString() public method

public __toString ( )

buildTemplate() protected method

protected buildTemplate ( )

chooseTemplate() public method

public chooseTemplate ( )

configure() public method

public configure ( $name, array $params = [] )
$params array

format() public static method

public static format ( $template, array $vars = [] )
$vars array

getId() public method

public getId ( )

getMainMessage() public method

public getMainMessage ( )

getName() public method

public getName ( )

getParam() public method

public getParam ( $name )

getParams() public method

public getParams ( )

getTemplate() public method

public getTemplate ( )

guessId() public method

public guessId ( )

hasCustomTemplate() public method

public hasCustomTemplate ( )

hasParam() public method

public hasParam ( $name )

setId() public method

public setId ( $id )

setMode() public method

public setMode ( $mode )

setName() public method

public setName ( $name )

setParam() public method

public setParam ( $key, $value )

setParams() public method

public setParams ( array $params )
$params array

setTemplate() public method

public setTemplate ( $template )

stringify() public static method

public static stringify ( mixed $value, integer $depth = 1 ) : string
$value mixed
$depth integer
return string

stringifyArray() public static method

public static stringifyArray ( array $value, integer $depth = 1 ) : string
$value array
$depth integer
return string

stringifyObject() public static method

public static stringifyObject ( mixed $value, integer $depth = 2 ) : string
$value mixed
$depth integer
return string

Property Details

$defaultTemplates public_oe static_oe property

public static $defaultTemplates

$id protected_oe property

protected $id

$mode protected_oe property

protected $mode

$name protected_oe property

protected $name

$params protected_oe property

protected $params

$template protected_oe property

protected $template