MigrationsCollector
extends DataCollector
in package
DataCollector.
Children of this class must store the collected data in the data property.
Table of Contents
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $dependencyFactory : DependencyFactory
- $flattener : MigrationsFlattener
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : void
- getData() : mixed
- getName() : string
- reset() : void
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
$dependencyFactory
private
DependencyFactory
$dependencyFactory
$flattener
private
MigrationsFlattener
$flattener
Methods
__construct()
public
__construct(DependencyFactory $dependencyFactory, MigrationsFlattener $migrationsFlattener) : mixed
Parameters
- $dependencyFactory : DependencyFactory
- $migrationsFlattener : MigrationsFlattener
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : void
Parameters
getData()
public
getData() : mixed
getName()
public
getName() : string
Return values
stringreset()
public
reset() : void
cloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
DatagetCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner