for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Apie\OpenapiSchema\Spec;
use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension;
use Apie\OpenapiSchema\Contract\InfoContract;
use Apie\OpenapiSchema\Map\SecurityRequirementList;
use Apie\OpenapiSchema\Map\ServerList;
use Apie\OpenapiSchema\Map\TagList;
use Apie\OpenapiSchema\ValueObjects\OpenApiVersion;
use Apie\ValueObjects\ValueObjectInterface;
/**
* @see https://swagger.io/specification/#openapi-object
*/
final class Document implements ValueObjectInterface
{
use CompositeValueObjectWithExtension;
Apie\OpenapiSchema\Conce...alueObjectWithExtension
$name
Apie\OpenapiSchema\Spec\Document
* @var OpenApiVersion
private $openapi;
* @var InfoContract|Info
private $info;
* @var ServerList|null
private $servers;
$servers
* @var Paths
private $paths;
* @var Components|null
private $components;
* @var SecurityRequirementList|null
private $security;
$security
* @var TagList|null
private $tags;
$tags
* @var ExternalDocs|null
private $externalDocs;
$externalDocs
public function __construct(InfoContract $info, Paths $paths)
$this->openapi = new OpenApiVersion('');
$this->info = $info;
$this->paths = $paths;
}
* @return Paths
public function getPaths(): Paths
return $this->paths;
* @return Components|null
public function getComponents(): ?Components
return $this->components;