PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/ODataConnectorForMySQL/ObjectModel/Schema.php

http://odatamysqlphpconnect.codeplex.com
PHP | 81 lines | 23 code | 0 blank | 58 comment | 0 complexity | 7b51b66b7dcb189354ea6ceee4fe5cad MD5 | raw file
  1. <?php
  2. /**
  3. * Representation of an edmx schema.
  4. *
  5. * PHP version 5.3
  6. *
  7. * @category ODataConnectorForMySQL
  8. * @package ODataConnectorForMySQL_ObjectModel
  9. * @author Yash K. Kothari <odataphpproducer_alias@microsoft.com>
  10. * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
  11. * @license New BSD license, (http://www.opensource.org/licenses/bsd-license.php)
  12. * @version SVN: 1.0
  13. * @link
  14. *
  15. */
  16. namespace ODataConnectorForMySQL\ObjectModel;
  17. use ODataConnectorForMySQL\ObjectModel\EntityType;
  18. use ODataConnectorForMySQL\ObjectModel\Association;
  19. use ODataConnectorForMySQL\ObjectModel\EntityContainer;
  20. /**
  21. * Type to represent an edmx schema.
  22. *
  23. * @category ODataConnectorForMySQL
  24. * @package ODataConnectorForMySQL_ObjectModel
  25. * @author Yash K. Kothari <odataphpproducer_alias@microsoft.com>
  26. * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
  27. * @license New BSD license, (http://www.opensource.org/licenses/bsd-license.php)
  28. * @version Release: 1.0
  29. * @link
  30. */
  31. class Schema
  32. {
  33. /**
  34. *
  35. * Schema namespace
  36. * @var string
  37. */
  38. public $namespace;
  39. /**
  40. *
  41. * Entity types
  42. * @var array<EntityType>
  43. */
  44. public $entityTypes;
  45. /**
  46. *
  47. * Schema Associations
  48. * @var array<Association>
  49. */
  50. public $associations;
  51. /**
  52. *
  53. * Schema Entity Container
  54. * @var EntityContainer
  55. */
  56. public $entityContainer;
  57. /**
  58. *
  59. * Entity Name Information
  60. * @var EntityNameInformation
  61. */
  62. public $entityNameInformation;
  63. /**
  64. *
  65. * Mapping details of entities and their properties
  66. * @var MappingDetails
  67. */
  68. public $mappingDetails;
  69. /**
  70. * Constructor to Initialize Objects and array.
  71. */
  72. function __construct()
  73. {
  74. $this->entityTypes = array();
  75. $this->associations = array();
  76. $this->entityContainer = null;
  77. $this->entityNameInformation = null;
  78. $this->mappingDetails = null;
  79. }
  80. }
  81. ?>