ViewErrorBag
in package
implements
Countable
Tags
Interfaces, Classes and Traits
- Countable
Table of Contents
- $bags : array<string|int, mixed>
- The array of the view error bags.
- __call() : mixed
- Dynamically call methods on the default bag.
- __get() : MessageBag
- Dynamically access a view error bag.
- __set() : void
- Dynamically set a view error bag.
- __toString() : string
- Convert the default bag to its string representation.
- any() : bool
- Determine if the default message bag has any messages.
- count() : int
- Get the number of messages in the default bag.
- getBag() : MessageBag
- Get a MessageBag instance from the bags.
- getBags() : array<string|int, mixed>
- Get all the bags.
- hasBag() : bool
- Checks if a named MessageBag exists in the bags.
- put() : $this
- Add a new MessageBag instance to the bags.
Properties
$bags
The array of the view error bags.
protected
array<string|int, mixed>
$bags
= []
Methods
__call()
Dynamically call methods on the default bag.
public
__call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
- $method : string
- $parameters : array<string|int, mixed>
Return values
mixed —__get()
Dynamically access a view error bag.
public
__get(string $key) : MessageBag
Parameters
- $key : string
Return values
MessageBag —__set()
Dynamically set a view error bag.
public
__set(string $key, MessageBag $value) : void
Parameters
- $key : string
- $value : MessageBag
Return values
void —__toString()
Convert the default bag to its string representation.
public
__toString() : string
Return values
string —any()
Determine if the default message bag has any messages.
public
any() : bool
Return values
bool —count()
Get the number of messages in the default bag.
public
count() : int
Return values
int —getBag()
Get a MessageBag instance from the bags.
public
getBag(string $key) : MessageBag
Parameters
- $key : string
Return values
MessageBag —getBags()
Get all the bags.
public
getBags() : array<string|int, mixed>
Return values
array<string|int, mixed> —hasBag()
Checks if a named MessageBag exists in the bags.
public
hasBag([string $key = 'default' ]) : bool
Parameters
- $key : string = 'default'
Return values
bool —put()
Add a new MessageBag instance to the bags.
public
put(string $key, MessageBag $bag) : $this
Parameters
- $key : string
- $bag : MessageBag