Returns a string representation of the type of the value.
Parameters
mixed $value:
Return value
string
File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php, line 45
Class
- AbstractComparisonValidator
- Provides a base class for the validation of property comparisons.
Namespace
Symfony\Component\Validator\Constraints
Code
private function valueToType($value) {
return is_object($value) ? get_class($value) : gettype($value);
}