db backup prior to drupal security update
[yaffs-website] / vendor / symfony / validator / Mapping / ElementMetadata.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Validator\Mapping;
13
14 /**
15  * Contains the metadata of a structural element.
16  *
17  * @author Bernhard Schussek <bschussek@gmail.com>
18  *
19  * @deprecated since version 2.5, to be removed in 3.0.
20  *             Extend {@link GenericMetadata} instead.
21  */
22 abstract class ElementMetadata extends GenericMetadata
23 {
24     public function __construct()
25     {
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);
28         }
29     }
30 }