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\SchemaContract;
use Apie\OpenapiSchema\Map\ExampleMap;
use Apie\OpenapiSchema\ValueObjects\ParameterIn;
use Apie\ValueObjects\ValueObjectInterface;
/**
* @see https://swagger.io/specification/#parameter-object
*/
class Parameter implements ValueObjectInterface
{
use CompositeValueObjectWithExtension;
* @var string
private $name;
* @var ParameterIn
private $in;
* @var string|null
private $description;
$description
* @var bool|null
private $required;
$required
private $deprecated;
$deprecated
private $allowEmptyValue;
$allowEmptyValue
private $style;
$style
private $explode;
$explode
private $allowReserved;
$allowReserved
* @var SchemaContract|Schema|Reference|null
private $schema;
$schema
* @var mixed|null
private $example;
$example
* @var ExampleMap|null
private $examples;
$examples
* @var string|MediaType|null
private $content;
$content
public function __construct(string $name, ParameterIn $in)
$this->name = $name;
$this->in = $in;
}
* @return string
public function getName(): string
return $this->name;
* @return ParameterIn
public function getIn(): ParameterIn
return $this->in;