| 1 | <?php |
||
| 11 | class MetadataWriter |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Holds reference to the wrapper over service metadata and query provider implementations |
||
| 16 | * In this context this provider will be used for gathering metadata information only. |
||
| 17 | * |
||
| 18 | * @var ProvidersWrapper |
||
| 19 | */ |
||
| 20 | private $providersWrapper; |
||
| 21 | |||
| 22 | |||
| 23 | /** |
||
| 24 | * The DataServiceVersion for this metadata. |
||
| 25 | * |
||
| 26 | * @var Version |
||
| 27 | */ |
||
| 28 | private $_dataServiceVersion; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Creates new instance of MetadataWriter. |
||
| 32 | * |
||
| 33 | * @param ProvidersWrapper $provider Reference to the |
||
| 34 | * service metadata and query provider wrapper |
||
| 35 | */ |
||
| 36 | public function __construct(ProvidersWrapper $provider) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Write the metadata in CSDL format. |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function writeMetadata() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Gets data service version for this metadata. |
||
| 53 | * |
||
| 54 | * @return Version |
||
| 55 | */ |
||
| 56 | public function getDataServiceVersion() |
||
| 60 | } |
||
| 61 |