mirror of
https://github.com/appwrite/appwrite
synced 2026-05-04 05:48:22 +00:00
37 lines
572 B
PHP
37 lines
572 B
PHP
<?php
|
|
|
|
namespace Appwrite\SDK\Specification;
|
|
|
|
class Specification
|
|
{
|
|
protected Format $format;
|
|
|
|
public function __construct(Format $format)
|
|
{
|
|
$this->format = $format;
|
|
}
|
|
|
|
/**
|
|
* Get Name.
|
|
*
|
|
* Get format name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return $this->format->getName();
|
|
}
|
|
|
|
/**
|
|
* Parse
|
|
*
|
|
* Parses Appwrite App to given format
|
|
*
|
|
* @return array
|
|
*/
|
|
public function parse(): array
|
|
{
|
|
return $this->format->parse();
|
|
}
|
|
}
|