1
0
Fork 0
mirror of synced 2024-07-02 21:20:58 +12:00
appwrite/src/Appwrite/Specification/Specification.php

38 lines
568 B
PHP
Raw Normal View History

2020-11-12 11:02:42 +13:00
<?php
namespace Appwrite\Specification;
class Specification
{
protected Format $format;
2020-11-12 11:02:42 +13:00
public function __construct(Format $format)
{
$this->format = $format;
}
/**
* Get Name.
*
* Get format name
*
* @return string
*/
2022-05-24 02:54:50 +12:00
public function getName(): string
2020-11-12 11:02:42 +13:00
{
return $this->format->getName();
}
/**
* Parse
*
* Parses Appwrite App to given format
*
* @return array
*/
public function parse(): array
{
return $this->format->parse();
}
2022-05-24 02:54:50 +12:00
}