Segment::factory()
Parses a segment into the property/method name and its arguments
Segment::factory(string $segment, int $position = 0): Kirby\Query\Segment
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $segment * | string |
– | |
| $position | int |
0 |
String position of the segment inside the full query |