for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Aweapi\Openapi\Objects;
use Aweapi\Openapi\Extensions;
use Aweapi\Openapi\ValueObject;
final class ExternalDocumentation extends ValueObject
{
use Properties\Url;
use Properties\OptionalDescription;
use Properties\OptionalExtensions;
public function __construct(
string $url,
string $description = null,
Extensions $extensions = null
) {
$this->url = $url;
$this->description = $description;
$this->extensions = $extensions;
}
public function jsonSerialize(): ?array
return $this->extendedProperties(parent::jsonSerialize());
protected function normalizeOptionalProperties(): array
return [
'description' => $this->getNormalizedDescription(),
];
protected function normalizeRequiredProperties(): array
'url' => $this->getUrl(),