4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Validator\Mapping;
15 * Contains the metadata of a structural element.
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 * @deprecated since version 2.5, to be removed in 3.0.
20 * Extend {@link GenericMetadata} instead.
22 abstract class ElementMetadata extends GenericMetadata
24 public function __construct()
26 if (!$this instanceof MemberMetadata && !$this instanceof ClassMetadata) {
27 @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);