dox Executable Documentation

Map property types to fields

Unknown

Given the class 'mapUnknown\\Action' with the body ' public $unknown; '
When I get the fields of 'mapUnknown\\Action'
Then 'unknown' should be a InputField::class

String

Given the class 'mapString\\Action' with the body ' /** @var string */ public $string; '
When I get the fields of 'mapString\\Action'
Then 'string' should be a InputField::class

Array

Given the class 'mapArray\\Action' with the body ' /** @var array|string[] */ public $array; '
When I get the fields of 'mapArray\\Action'
Then 'array' should be a ArrayField::class
Then the inner field of 'array' should be a InputField::class

Date time

Given the class 'mapDateTime\\Action' with the body ' /** @var \\DateTime */ public $date; '
When I get the fields of 'mapDateTime\\Action'
Then 'date' should be a DateTimeField::class

Boolean

Given the class 'mapBoolean\\Action' with the body ' /** @var bool */ public $boolean; '
When I get the fields of 'mapBoolean\\Action'
Then 'boolean' should be a CheckboxField::class