Sha256: e6f9e6dcf357055f4a616accc9f72bdbd72790651fe0f3a8071a749276e1805f
Contents?: true
Size: 1000 Bytes
Versions: 1
Compression:
Stored size: 1000 Bytes
Contents
<?php namespace Hello\OpenApi; /** * Represents a result of translating the openapi raw file. * The all hidden flag is useful to unset empty collections which occur as a * result of hiding all the spec within them. * * @see RawFile::translate() */ class TranslationResult { /** * Contains the OpenAPI spec, in array form * * @var array */ private array $data; /** * Set to true if data is empty because everything was hidden. * * @var bool */ public bool $all_hidden; public function __construct(array $data, bool $all_hidden) { $this->data = $data; $this->all_hidden = $all_hidden; } /** * Returns data. * * @return array */ public function getData(): array { return $this->data; } /** * Returns whether everything was hidden. * * @return bool */ public function isAllHidden(): bool { return $this->all_hidden; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hellosign-ruby-sdk-6.0.0.pre.beta | oas/src/Hello/OpenApi/TranslationResult.php |