Sha256: 2b3b5323597a7bb882eb158d0168051b546fc5a02dda9531fad35a7057c340ea
Contents?: true
Size: 744 Bytes
Versions: 24
Compression:
Stored size: 744 Bytes
Contents
<?php namespace JsonSchema\Constraints\TypeCheck; class StrictTypeCheck implements TypeCheckInterface { public static function isObject($value) { return is_object($value); } public static function isArray($value) { return is_array($value); } public static function propertyGet($value, $property) { return $value->{$property}; } public static function propertySet(&$value, $property, $data) { $value->{$property} = $data; } public static function propertyExists($value, $property) { return property_exists($value, $property); } public static function propertyCount($value) { return count(get_object_vars($value)); } }
Version data entries
24 entries across 24 versions & 1 rubygems