| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <?php
- namespace Test\Michel\Framework\Core\Mock;
- use Psr\Http\Message\MessageInterface;
- use Psr\Http\Message\RequestInterface;
- use Psr\Http\Message\ServerRequestInterface;
- use Psr\Http\Message\StreamInterface;
- use Psr\Http\Message\UriInterface;
- class ServerRequestMock implements ServerRequestInterface
- {
- public function __construct(
- array $attributes = []
- )
- {
- $this->attributes = $attributes;
- }
- public function getServerParams(): array
- {
- // TODO: Implement getServerParams() method.
- }
- public function getCookieParams(): array
- {
- // TODO: Implement getCookieParams() method.
- }
- public function withCookieParams(array $cookies): ServerRequestInterface
- {
- // TODO: Implement withCookieParams() method.
- }
- public function getQueryParams(): array
- {
- // TODO: Implement getQueryParams() method.
- }
- public function withQueryParams(array $query): ServerRequestInterface
- {
- // TODO: Implement withQueryParams() method.
- }
- public function getUploadedFiles(): array
- {
- // TODO: Implement getUploadedFiles() method.
- }
- public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface
- {
- // TODO: Implement withUploadedFiles() method.
- }
- public function getParsedBody()
- {
- // TODO: Implement getParsedBody() method.
- }
- public function withParsedBody($data): ServerRequestInterface
- {
- // TODO: Implement withParsedBody() method.
- }
- public function getAttributes(): array
- {
- return $this->attributes;
- }
- public function getAttribute(string $name, $default = null)
- {
- return $this->attributes[$name] ?? $default;
- }
- public function withAttribute(string $name, $value): ServerRequestInterface
- {
- // TODO: Implement withAttribute() method.
- }
- public function withoutAttribute(string $name): ServerRequestInterface
- {
- // TODO: Implement withoutAttribute() method.
- }
- private array $attributes;
- public function getProtocolVersion(): string
- {
- // TODO: Implement getProtocolVersion() method.
- }
- public function withProtocolVersion(string $version): MessageInterface
- {
- // TODO: Implement withProtocolVersion() method.
- }
- public function getHeaders(): array
- {
- return [];
- }
- public function hasHeader(string $name): bool
- {
- // TODO: Implement hasHeader() method.
- }
- public function getHeader(string $name): array
- {
- // TODO: Implement getHeader() method.
- }
- public function getHeaderLine(string $name): string
- {
- // TODO: Implement getHeaderLine() method.
- }
- public function withHeader(string $name, $value): MessageInterface
- {
- // TODO: Implement withHeader() method.
- }
- public function withAddedHeader(string $name, $value): MessageInterface
- {
- // TODO: Implement withAddedHeader() method.
- }
- public function withoutHeader(string $name): MessageInterface
- {
- // TODO: Implement withoutHeader() method.
- }
- public function getBody(): StreamInterface
- {
- // TODO: Implement getBody() method.
- }
- public function withBody(StreamInterface $body): MessageInterface
- {
- // TODO: Implement withBody() method.
- }
- public function getRequestTarget(): string
- {
- // TODO: Implement getRequestTarget() method.
- }
- public function withRequestTarget(string $requestTarget): RequestInterface
- {
- // TODO: Implement withRequestTarget() method.
- }
- public function getMethod(): string
- {
- // TODO: Implement getMethod() method.
- }
- public function withMethod(string $method): RequestInterface
- {
- // TODO: Implement withMethod() method.
- }
- public function getUri(): UriInterface
- {
- // TODO: Implement getUri() method.
- }
- public function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterface
- {
- // TODO: Implement withUri() method.
- }
- }
|