for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Enhavo\Bundle\ApiBundle\Documentation\Model;
class Response
{
public function __construct(
private array &$response,
private Method $parent,
)
}
public function description($description): self
$this->method['description'] = $description;
method
return $this;
public function content($mimeType = 'application/json'): Content
if (!array_key_exists('content', $this->response)) {
$this->response['content'] = [];
if (!array_key_exists($mimeType, $this->response['content'])) {
$this->response['content'][$mimeType] = [];
return new Content($this->response['content'][$mimeType], $this);
public function end(): Method
return $this->parent;
public function getDocumentation(): Documentation
return $this->parent->getDocumentation();