Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Mapping/ClassMetadata.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
45 * {@link getDefaultGroup()} instead. | 45 * {@link getDefaultGroup()} instead. |
46 */ | 46 */ |
47 public $defaultGroup; | 47 public $defaultGroup; |
48 | 48 |
49 /** | 49 /** |
50 * @var MemberMetadata[] | 50 * @var MemberMetadata[][] |
51 * | 51 * |
52 * @internal This property is public in order to reduce the size of the | 52 * @internal This property is public in order to reduce the size of the |
53 * class' serialized representation. Do not access it. Use | 53 * class' serialized representation. Do not access it. Use |
54 * {@link getPropertyMetadata()} instead. | 54 * {@link getPropertyMetadata()} instead. |
55 */ | 55 */ |
332 return $this; | 332 return $this; |
333 } | 333 } |
334 | 334 |
335 /** | 335 /** |
336 * Merges the constraints of the given metadata into this object. | 336 * Merges the constraints of the given metadata into this object. |
337 * | |
338 * @param ClassMetadata $source The source metadata | |
339 */ | 337 */ |
340 public function mergeConstraints(ClassMetadata $source) | 338 public function mergeConstraints(ClassMetadata $source) |
341 { | 339 { |
340 if ($source->isGroupSequenceProvider()) { | |
341 $this->setGroupSequenceProvider(true); | |
342 } | |
343 | |
342 foreach ($source->getConstraints() as $constraint) { | 344 foreach ($source->getConstraints() as $constraint) { |
343 $this->addConstraint(clone $constraint); | 345 $this->addConstraint(clone $constraint); |
344 } | 346 } |
345 | 347 |
346 foreach ($source->getConstrainedProperties() as $property) { | 348 foreach ($source->getConstrainedProperties() as $property) { |
496 public function getCascadingStrategy() | 498 public function getCascadingStrategy() |
497 { | 499 { |
498 return CascadingStrategy::NONE; | 500 return CascadingStrategy::NONE; |
499 } | 501 } |
500 | 502 |
501 /** | |
502 * Adds a property metadata. | |
503 * | |
504 * @param PropertyMetadataInterface $metadata | |
505 */ | |
506 private function addPropertyMetadata(PropertyMetadataInterface $metadata) | 503 private function addPropertyMetadata(PropertyMetadataInterface $metadata) |
507 { | 504 { |
508 $property = $metadata->getPropertyName(); | 505 $property = $metadata->getPropertyName(); |
509 | 506 |
510 $this->members[$property][] = $metadata; | 507 $this->members[$property][] = $metadata; |