StimulusTargetsDto
extends AbstractStimulusDto
in package
FinalYes
Tags
Table of Contents
Properties
- $targets : mixed
Methods
- __toString() : string
- addTarget() : void
- toArray() : array<string|int, mixed>
Properties
$targets
private
mixed
$targets
= []
Methods
__toString()
public
__toString() : string
Return values
stringaddTarget()
public
addTarget(string $controllerName[, string|null $targetNames = null ]) : void
Parameters
- $controllerName : string
-
the Stimulus controller name
- $targetNames : string|null = null
-
The space-separated list of target names if a string is passed to the 1st argument. Optional.
toArray()
public
toArray() : array<string|int, mixed>