You are here

public function LegacyConstraintViolationBuilder::setCause in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\LegacyConstraintViolationBuilder::setCause()

Sets the cause of the violation.

Parameters

mixed $cause The cause of the violation:

Return value

ConstraintViolationBuilderInterface This builder

Overrides ConstraintViolationBuilderInterface::setCause

File

vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php, line 146

Class

LegacyConstraintViolationBuilder
Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

public function setCause($cause) {

  // do nothing - we can't save the cause through the old API
  return $this;
}