original_string: public function getConstraintFromAll(\ReflectionProperty $reflectionProperty, $constraintClass)
      {
          /** @var All $allConstraint */
          if (!($allConstraint = $this->getConstraint($reflectionProperty, All::class, false))) {
              return;
          }
  
          foreach ($allConstraint->constraints as $constraint) {
              if ($constraint instanceof $constraintClass) {
                  return $constraint;
              }
          }
      }
code: public function getConstraintFromAll(\ReflectionProperty $reflectionProperty, $constraintClass)
      {
          /** @var All $allConstraint */
          if (!($allConstraint = $this->getConstraint($reflectionProperty, All::class, false))) {
              return;
          }
  
          foreach ($allConstraint->constraints as $constraint) {
              if ($constraint instanceof $constraintClass) {
                  return $constraint;
              }
          }
      }
code_tokens: public function getConstraintFromAll ( \ ReflectionProperty $ reflectionProperty , $ constraintClass ) { /** @var All $allConstraint */ if ( ! ( $ allConstraint = $ this -> getConstraint ( $ reflectionProperty , All :: class , false ) ) ) { return ; } foreach ( $ allConstraint -> constraints as $ constraint ) { if ( $ constraint instanceof $ constraintClass ) { return $ constraint ; } } }
docstring: Retrieve a specific Symfony Constraint from within a Symfony All Constraint.
  
  @param \ReflectionProperty$reflectionProperty
  @param string $constraintClass
  @return Constraint|null
docstring_tokens: Retrieve a specific Symfony Constraint from within a Symfony All Constraint .