8000 [Validator] Remove internal from methods on non-internal interfaces by wouterj · Pull Request #50539 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Remove internal from methods on non-internal interfaces #50539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,107 +123,80 @@ public function getValidator();
public function getObject();

/**
* Sets the currently validated value.
* Warning: Should not be called by user code, to be used by the validator engine only.
*
* @param mixed $value The validated value
* @param object|null $object The currently validated object
* @param string $propertyPath The property path to the current value
*
* @internal Used by the validator engine. Should not be called by user
* code.
*/
public function setNode($value, ?object $object, MetadataInterface $metadata = null, string $propertyPath);

/**
* Sets the currently validated group.
* Warning: Should not be called by user code, to be used by the validator engine only.
*
* @param string|null $group The validated group
*
* @internal Used by the validator engine. Should not be called by user
* code.
*/
public function setGroup(?string $group);

/**
* Sets the currently validated constraint.
*
* @internal Used by the validator engine. Should not be called by user
* code.
* Warning: Should not be called by user code, to be used by the validator engine only.
*/
public function setConstraint(Constraint $constraint);

/**
* Marks an object as validated in a specific validation group.
* Warning: Should not be called by user code, to be used by the validator engine only.
*
* @param string $cacheKey The hash of the object
* @param string $groupHash The group's name or hash, if it is group
* sequence
*
* @internal Used by the validator engine. Should not be called by user
* code.
*/
public function markGroupAsValidated(string $cacheKey, string $groupHash);

/**
* Returns whether an object was validated in a specific validation group.
* Warning: Should not be called by user code, to be used by the validator engine only.
*
* @param string $cacheKey The hash of the object
* @param string $groupHash The group's name or hash, if it is group
* sequence
*
* @return bool
*
* @internal Used by the validator engine. Should not be called by user
* code.
*/
public function isGroupValidated(string $cacheKey, string $groupHash);

/**
* Marks a constraint as validated for an object.
* Warning: Should not be called by user code, to be used by the validator engine only.
*
* @param string $cacheKey The hash of the object
* @param string $constraintHash The hash of the constraint
*
* @internal Used by the validator engine. Should not be called by user
* code.
*/
public function markConstraintAsValidated(string $cacheKey, string $constraintHash);

/**
* Returns whether a constraint was validated for an object.
* Warning: Should not be called by user code, to be used by the validator engine only.
*
* @param string $cacheKey The hash of the object
* @param string $constraintHash The hash of the constraint
*
* @return bool
*
* @internal Used by the validator engine. Should not be called by user
* code.
*/
public function isConstraintValidated(string $cacheKey, string $constraintHash);

/**
* Marks that an object was initialized.
* Warning: Should not be called by user code, to be used by the validator engine only.
*
* @param string $cacheKey The hash of the object
*
* @internal Used by the validator engine. Should not be called by user
* code.
*
* @see ObjectInitializerInterface
*/
public function markObjectAsInitialized(string $cacheKey);

/**
* Returns whether an object was initialized.
* Warning: Should not be called by user code, to be used by the validator engine only.
*
* @param string $cacheKey The hash of the object
*
* @return bool
*
* @internal Used by the validator engine. Should not be called by user
* code.
*
* @see ObjectInitializerInterface
*/
public function isObjectInitialized(string $cacheKey);
Expand Down
0