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\Properties;
use Aweapi\Openapi\Objects\ParameterCollection;
trait OptionalParameterCollection
{
private $parameters;
public function getParameters(): ParameterCollection
return $this->parameters;
}
public function hasParameters(): bool
return isset($this->parameters);
private function getNormalizedParameters(): array
return $this->hasParameters() ? $this->getParameters()->jsonSerialize() : [];