1 | <?php declare(strict_types = 1); |
||
18 | class DescriptionFactory |
||
19 | { |
||
20 | const BUILDER_OPEN_API = 'openapi'; |
||
21 | const BUILDER_RAML = 'raml'; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $type; |
||
27 | |||
28 | /** |
||
29 | * DescriptionFactory constructor. |
||
30 | * |
||
31 | * @param string $type |
||
32 | */ |
||
33 | public function __construct(string $type = self::BUILDER_OPEN_API) |
||
37 | |||
38 | /** |
||
39 | * @param string $uri |
||
40 | * @param \stdClass $definition |
||
41 | * |
||
42 | * @return Description |
||
43 | */ |
||
44 | public function create(string $uri, \stdClass $definition): Description |
||
69 | } |
||
70 |