ValidationData
class ValidationData
Methods
static
initializeAndGatherData($attribute, $masterData)
No description
static array
initializeAttributeOnData(string $attribute, array $masterData)
Gather a copy of the attribute data filled with any missing attributes.
static array
extractValuesForWildcards(array $masterData, array $data, string $attribute)
Get all of the exact attribute values for a given wildcard attribute.
static array
extractDataFromPath(string $attribute, array $masterData)
Extract data based on the given dot-notated path.
static string
getLeadingExplicitAttributePath(string $attribute)
Get the explicit part of the attribute name.
Details
at line 10
static
initializeAndGatherData($attribute, $masterData)
No description
at line 26
static protected array
initializeAttributeOnData(string $attribute, array $masterData)
Gather a copy of the attribute data filled with any missing attributes.
at line 47
static protected array
extractValuesForWildcards(array $masterData, array $data, string $attribute)
Get all of the exact attribute values for a given wildcard attribute.
at line 79
static array
extractDataFromPath(string $attribute, array $masterData)
Extract data based on the given dot-notated path.
Used to extract a sub-section of the data for faster iteration.
at line 102
static string
getLeadingExplicitAttributePath(string $attribute)
Get the explicit part of the attribute name.
E.g. 'foo.bar.*.baz' -> 'foo.bar'
Allows us to not spin through all of the flattened data for some operations.