public function getConstraint(\ReflectionProperty $reflectionProperty, $constraintClass, $getFromAll = true)
    {
        if (
            ($constraint = $this->reader->getPropertyAnnotation($reflectionProperty, $constraintClass)) &&
            $constraint instanceof Constraint
        ) {
            return $constraint;
        }

        // if not found, and not searching the All Constraint, return
        if (!$getFromAll) {
            return;
        }

        if (
            ($allConstraint = $this->getConstraintFromAll($reflectionProperty, $constraintClass)) &&
            $allConstraint instanceof Constraint
        ) {
            return $allConstraint;
        }
    }