You are here

abstract class ElementMetadata in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/ElementMetadata.php \Symfony\Component\Validator\Mapping\ElementMetadata

Contains the metadata of a structural element.

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

Expanded class hierarchy of ElementMetadata

Deprecated

since version 2.5, to be removed in 3.0. Extend {@link GenericMetadata} instead.

1 file declares its use of ElementMetadata
LegacyElementMetadataTest.php in vendor/symfony/validator/Tests/Mapping/LegacyElementMetadataTest.php

File

vendor/symfony/validator/Mapping/ElementMetadata.php, line 22

Namespace

Symfony\Component\Validator\Mapping
View source
abstract class ElementMetadata extends GenericMetadata {
  public function __construct() {
    if (!$this instanceof MemberMetadata && !$this instanceof ClassMetadata) {
      @trigger_error('The ' . __CLASS__ . ' class is deprecated since version 2.5 and will be removed in 3.0. Use the Symfony\\Component\\Validator\\Mapping\\GenericMetadata class instead.', E_USER_DEPRECATED);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ElementMetadata::__construct public function 2
GenericMetadata::$cascadingStrategy public property The strategy for cascading objects.
GenericMetadata::$constraints public property @internal This property is public in order to reduce the size of the class' serialized representation. Do not access it. Use {@link getConstraints()} and {@link findConstraints()} instead.
GenericMetadata::$constraintsByGroup public property @internal This property is public in order to reduce the size of the class' serialized representation. Do not access it. Use {@link findConstraints()} instead.
GenericMetadata::$traversalStrategy public property The strategy for traversing traversable objects. 1
GenericMetadata::accept Deprecated public function Exists for compatibility with the deprecated {@link Symfony\Component\Validator\MetadataInterface}. Overrides MetadataInterface::accept 2
GenericMetadata::addConstraint public function Adds a constraint. 2
GenericMetadata::addConstraints public function Adds an list of constraints.
GenericMetadata::findConstraints public function Aware of the global group (* group). Overrides MetadataInterface::findConstraints
GenericMetadata::getCascadingStrategy public function Returns the strategy for cascading objects. Overrides MetadataInterface::getCascadingStrategy 1
GenericMetadata::getConstraints public function Returns all constraints of this element. Overrides MetadataInterface::getConstraints
GenericMetadata::getTraversalStrategy public function Returns the strategy for traversing traversable objects. Overrides MetadataInterface::getTraversalStrategy
GenericMetadata::hasConstraints public function Returns whether this element has any constraints.
GenericMetadata::__clone public function Clones this object.
GenericMetadata::__sleep public function Returns the names of the properties that should be serialized. 2