Constructor.
string $class The class this property is defined on:
string $name The name of this property:
Overrides MemberMetadata::__construct
public function __construct($class, $name) {
if (!property_exists($class, $name)) {
throw new ValidatorException(sprintf('Property %s does not exist in class %s', $name, $class));
}
parent::__construct($class, $name, $name);
}