private function appendPattern(Schema $property, $newPattern)
    {
        if (null === $newPattern) {
            return;
        }

        if (null !== $property->getPattern()) {
            $property->setPattern(sprintf('%s, %s', $property->getPattern(), $newPattern));
        } else {
            $property->setPattern($newPattern);
        }
    }
private function appendPattern(Schema $property, $newPattern)
    {
        if (null === $newPattern) {
            return;
        }

        if (null !== $property->getPattern()) {
            $property->setPattern(sprintf('%s, %s', $property->getPattern(), $newPattern));
        } else {
            $property->setPattern($newPattern);
        }
    }
private function appendPattern ( Schema $ property , $ newPattern ) { if ( null === $ newPattern ) { return ; } if ( null !== $ property -> getPattern ( ) ) { $ property -> setPattern ( sprintf ( '%s, %s' , $ property -> getPattern ( ) , $ newPattern ) ) ; } else { $ property -> setPattern ( $ newPattern ) ; } }
Append the pattern from the constraint to the existing pattern.
Append the pattern from the constraint to the existing pattern .