appwrite/src/Appwrite/SDK/Specification/Specification.php

38 lines
572 B
PHP
Raw Normal View History

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