Validator¶
-
class
OC\RichObjectStrings\
Validator
¶ - Class Validator
Source: lib/private/RichObjectStrings/Validator.php#38 Implements: OCP\RichObjectStrings\IValidator
Properties¶
-
protected static property
OC\RichObjectStrings\Validator::$
definitions
¶ Source: lib/private/RichObjectStrings/Validator.php#41 Type: \OCP\RichObjectStrings\Definitions
-
protected static property
OC\RichObjectStrings\Validator::$
requiredParameters
¶ Source: lib/private/RichObjectStrings/Validator.php#44 Type: array[]
Methods¶
-
public
OC\RichObjectStrings\Validator::
__construct
($definitions)¶ - Constructor
Source: Parameters: - $definitions (
OCP\RichObjectStrings\Definitions
)
- $definitions (
-
public
OC\RichObjectStrings\Validator::
validate
($subject, $parameters)¶ Source: Parameters: - $subject (string)
- $parameters (array[])
Throws: Since: 11.0.0
-
protected
OC\RichObjectStrings\Validator::
validateParameter
($parameter)¶ Source: Parameters: - $parameter (array)
Throws:
-
protected
OC\RichObjectStrings\Validator::
getRequiredParameters
($type, $definition)¶ Source: Parameters: - $type (string)
- $definition (array)
Returns: string[]