DuelActionFactory
extends Factory
in package
Tags
Table of Contents
Methods
- challenger() : static
- Set the move actor to challenger.
- definition() : array<string, mixed>
- Define the model's default state.
- opponent() : static
- Set the move actor to opponent.
- order() : static
- Set the order of the move.
- type() : static
- Configure the factory to create a specific type of move.
Methods
challenger()
Set the move actor to challenger.
public
challenger() : static
Return values
staticdefinition()
Define the model's default state.
public
definition() : array<string, mixed>
Return values
array<string, mixed>opponent()
Set the move actor to opponent.
public
opponent() : static
Return values
staticorder()
Set the order of the move.
public
order(int $order) : static
Parameters
- $order : int
Return values
statictype()
Configure the factory to create a specific type of move.
public
type(int $type) : static
Parameters
- $type : int