typedData = $typed_data; } /** * {@inheritdoc} */ public function accept(ValidationVisitorInterface $visitor, $typed_data, $group, $propertyPath) { throw new BadMethodCallException('Not supported.'); } /** * {@inheritdoc} */ public function findConstraints($group) { return $this->getConstraints(); } /** * {@inheritdoc} */ public function getConstraints() { return $this->typedData->getConstraints(); } /** * {@inheritdoc} */ public function getTraversalStrategy() { return TraversalStrategy::NONE; } /** * {@inheritdoc} */ public function getCascadingStrategy() { // By default, never cascade into validating referenced data structures. return CascadingStrategy::NONE; } }