Documentation

TransitionConfig
in package

This class is automatically generated to help in creating a config.

Table of Contents

Properties

$_usedProperties  : mixed
$from  : mixed
$guard  : mixed
$metadata  : mixed
$name  : mixed
$to  : mixed

Methods

__construct()  : mixed
from()  : $this
guard()  : $this
An expression to block the transition
metadata()  : $this
name()  : $this
to()  : $this
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $value = [] ]) : mixed
Parameters
$value : array<string|int, mixed> = []

from()

public from(mixed $value) : $this
Parameters
$value : mixed
Return values
$this

guard()

An expression to block the transition

public guard(ParamConfigurator|mixed $value) : $this
Parameters
$value : ParamConfigurator|mixed
Tags
example

is_fully_authenticated() and is_granted('ROLE_JOURNALIST') and subject.getTitle() == 'My first article'

default

null

Return values
$this

to()

public to(mixed $value) : $this
Parameters
$value : mixed
Return values
$this

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results