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:

lib/private/RichObjectStrings/Validator.php#51

Parameters:
public OC\RichObjectStrings\Validator::validate($subject, $parameters)
Source:

lib/private/RichObjectStrings/Validator.php#61

Parameters:
  • $subject (string)
  • $parameters (array[])
Throws:

\OCP\RichObjectStrings\InvalidObjectExeption

Since:

11.0.0

protected OC\RichObjectStrings\Validator::validateParameter($parameter)
Source:

lib/private/RichObjectStrings/Validator.php#90

Parameters:
  • $parameter (array)
Throws:

\OCP\RichObjectStrings\InvalidObjectExeption

protected OC\RichObjectStrings\Validator::getRequiredParameters($type, $definition)
Source:

lib/private/RichObjectStrings/Validator.php#109

Parameters:
  • $type (string)
  • $definition (array)
Returns:

string[]