ClassMetadataCollection.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /*
  3. * This file is part of the Doctrine Bundle
  4. *
  5. * The code was originally distributed inside the Symfony framework.
  6. *
  7. * (c) Fabien Potencier <fabien@symfony.com>
  8. * (c) Doctrine Project, Benjamin Eberlei <kontakt@beberlei.de>
  9. *
  10. * For the full copyright and license information, please view the LICENSE
  11. * file that was distributed with this source code.
  12. */
  13. namespace Doctrine\Bundle\DoctrineBundle\Mapping;
  14. /**
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. */
  17. class ClassMetadataCollection
  18. {
  19. private $path;
  20. private $namespace;
  21. private $metadata;
  22. /**
  23. * Constructor
  24. *
  25. * @param array $metadata
  26. */
  27. public function __construct(array $metadata)
  28. {
  29. $this->metadata = $metadata;
  30. }
  31. /**
  32. * @return array
  33. */
  34. public function getMetadata()
  35. {
  36. return $this->metadata;
  37. }
  38. /**
  39. * @param string $path
  40. */
  41. public function setPath($path)
  42. {
  43. $this->path = $path;
  44. }
  45. /**
  46. * @return string
  47. */
  48. public function getPath()
  49. {
  50. return $this->path;
  51. }
  52. /**
  53. * @param string $namespace
  54. */
  55. public function setNamespace($namespace)
  56. {
  57. $this->namespace = $namespace;
  58. }
  59. /**
  60. * @return string
  61. */
  62. public function getNamespace()
  63. {
  64. return $this->namespace;
  65. }
  66. }