ClassMetadataCollection.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace Doctrine\Bundle\DoctrineBundle\Mapping;
  3. use Doctrine\ORM\Mapping\ClassMetadata;
  4. class ClassMetadataCollection
  5. {
  6. /** @var string */
  7. private $path;
  8. /** @var string */
  9. private $namespace;
  10. /** @var ClassMetadata[] */
  11. private $metadata;
  12. /**
  13. * @param ClassMetadata[] $metadata
  14. */
  15. public function __construct(array $metadata)
  16. {
  17. $this->metadata = $metadata;
  18. }
  19. /**
  20. * @return ClassMetadata[]
  21. */
  22. public function getMetadata()
  23. {
  24. return $this->metadata;
  25. }
  26. /**
  27. * @param string $path
  28. */
  29. public function setPath($path)
  30. {
  31. $this->path = $path;
  32. }
  33. /**
  34. * @return string
  35. */
  36. public function getPath()
  37. {
  38. return $this->path;
  39. }
  40. /**
  41. * @param string $namespace
  42. */
  43. public function setNamespace($namespace)
  44. {
  45. $this->namespace = $namespace;
  46. }
  47. /**
  48. * @return string
  49. */
  50. public function getNamespace()
  51. {
  52. return $this->namespace;
  53. }
  54. }