for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Aweapi\Openapi\Builders;
use Aweapi\Openapi\Objects;
use Aweapi\Openapi\Objects\ExampleAggregate;
final class ExampleBuilder implements Objects\ExampleFactory
{
use Properties\OptionalExtensions;
private $description;
private $externalValue;
private $summary;
private $value;
public function createExample(): Objects\Example
return new Objects\Example(
$this->getSummary(),
$this->getDescription(),
$this->getValue(),
$this->getExternalValue(),
$this->getExtensions()
);
}
public function createExampleAggregate(): ExampleAggregate
return $this->createExample();
public function setDescription(string $description): self
$this->description = $description;
return $this;
public function setExternalValue(string $externalValue): self
$this->externalValue = $externalValue;
public function setSummary(string $summary): self
$this->summary = $summary;
/**
* @param mixed $value
*/
public function setValue($value): self
$this->value = $value;
private function getDescription(): ?string
return $this->description;
private function getExternalValue(): ?string
return $this->externalValue;
private function getSummary(): ?string
return $this->summary;
* @return mixed
private function getValue()
return $this->value;