MirroredParameters
class MirroredParameters implements Countable
Constants
| ANNOTATION |
|
| PREFIX |
|
| protected TOKEN |
|
Methods
Create an empty set of mirrored parameters.
Parse and validate mirrored parameters in a tool schema.
Build the mirrored headers for the tool arguments.
Get all mirrored parameters.
Count the mirrored parameters.
Validate an annotated property and create its header mapping.
Determine whether a schema branch contains a header annotation.
Details
at line 25
protected
__construct(Collection $parameters)
Create a set of mirrored parameters.
at line 32
static MirroredParameters
none()
Create an empty set of mirrored parameters.
at line 44
static MirroredParameters
fromSchema(array $inputSchema)
Parse and validate mirrored parameters in a tool schema.
at line 69
array
headers(array $arguments)
Build the mirrored headers for the tool arguments.
at line 89
Collection
all()
Get all mirrored parameters.
at line 97
int
count()
Count the mirrored parameters.
at line 110
static protected array
parse(array $schema, SchemaPath $path)
Parse annotations on statically reachable schema properties.
at line 162
static protected MirroredParameter
parameter(array $schema, SchemaPath $path)
Validate an annotated property and create its header mapping.
at line 188
static protected bool
containsAnnotation(array $schema)
Determine whether a schema branch contains a header annotation.