Version 1
[yaffs-website] / vendor / symfony / validator / Tests / Fixtures / FakeClassMetadata.php
diff --git a/vendor/symfony/validator/Tests/Fixtures/FakeClassMetadata.php b/vendor/symfony/validator/Tests/Fixtures/FakeClassMetadata.php
new file mode 100644 (file)
index 0000000..8c76a21
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Validator\Tests\Fixtures;
+
+use Symfony\Component\Validator\Mapping\ClassMetadata;
+
+class FakeClassMetadata extends ClassMetadata
+{
+    public function addCustomPropertyMetadata($propertyName, $metadata)
+    {
+        if (!isset($this->members[$propertyName])) {
+            $this->members[$propertyName] = array();
+        }
+
+        $this->members[$propertyName][] = $metadata;
+    }
+}