PHP Class Respect\Validation\Exceptions\ValidationException

Inheritance: extends InvalidArgumentExceptio\InvalidArgumentException, implements ExceptionInterface
Afficher le fichier Open project: respect/validation Class Usage Examples

Méthodes publiques

Свойство Type Description
$defaultTemplates

Protected Properties

Свойство Type Description
$id
$mode
$name
$params
$template

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
buildTemplate ( )

Private Methods

Méthode Description
buildMessage ( )

Method Details

__toString() public méthode

public __toString ( )

buildTemplate() protected méthode

protected buildTemplate ( )

chooseTemplate() public méthode

public chooseTemplate ( )

configure() public méthode

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

format() public static méthode

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

getId() public méthode

public getId ( )

getMainMessage() public méthode

public getMainMessage ( )

getName() public méthode

public getName ( )

getParam() public méthode

public getParam ( $name )

getParams() public méthode

public getParams ( )

getTemplate() public méthode

public getTemplate ( )

guessId() public méthode

public guessId ( )

hasCustomTemplate() public méthode

public hasCustomTemplate ( )

hasParam() public méthode

public hasParam ( $name )

setId() public méthode

public setId ( $id )

setMode() public méthode

public setMode ( $mode )

setName() public méthode

public setName ( $name )

setParam() public méthode

public setParam ( $key, $value )

setParams() public méthode

public setParams ( array $params )
$params array

setTemplate() public méthode

public setTemplate ( $template )

stringify() public static méthode

public static stringify ( mixed $value, integer $depth = 1 ) : string
$value mixed
$depth integer
Résultat string

stringifyArray() public static méthode

public static stringifyArray ( array $value, integer $depth = 1 ) : string
$value array
$depth integer
Résultat string

stringifyObject() public static méthode

public static stringifyObject ( mixed $value, integer $depth = 2 ) : string
$value mixed
$depth integer
Résultat 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