Debian Codegraph @

vendor/zircote/swagger-php/src/Console/GenerateFormat.php

raw
1 <?php declare(strict_types=1);
2
3 /**
4 * @license Apache 2.0
5 */
6
7 namespace OpenApi\Console;
8
9 enum GenerateFormat: string
10 {
11 case JSON = 'json';
12 case YAML = 'yaml';
13 case AUTO = 'auto';
14
15 public function isJson(): bool
16 {
17 return $this === GenerateFormat::JSON;
18 }
19
20 public function isYAML(): bool
21 {
22 return $this === GenerateFormat::YAML;
23 }
24
25 public function isAuto(): bool
26 {
27 return $this === GenerateFormat::AUTO;
28 }
29 }