Interfaces

(all in the Centum\Interfaces\Http namespace)

Centum\Interfaces\Http\CookieInterface

getName(): non-empty-string
getValue(): string
getHeaderString(): non-empty-string
send(): void
__toString(): non-empty-string

Centum\Interfaces\Http\CookiesInterface

get(
    non-empty-string $name
): Centum\Interfaces\Http\CookieInterface
has(
    non-empty-string $name
): bool
send(): void
all(): array<non-empty-string, Centum\Interfaces\Http\CookieInterface>
toArray(): array<non-empty-string, string>

Centum\Interfaces\Http\Csrf\GeneratorInterface

generate(): string

Centum\Interfaces\Http\Csrf\StorageInterface

get(): string
set(
    string $newValue
): void
reset(): void

Centum\Interfaces\Http\Csrf\ValidatorInterface

validate(): void

Centum\Interfaces\Http\DataInterface

get(
    non-empty-string $name
): mixed
has(
    non-empty-string $name
): bool
toArray(): array<non-empty-string, mixed>

Centum\Interfaces\Http\FileGroupInterface

getID(): non-empty-string
add(
    Centum\Interfaces\Http\FileInterface $file
): void
all(): array<Centum\Interfaces\Http\FileInterface>
toArray(): array<array{name: ?string, type: ?string, size: int, location: ?string, error: int}>

Centum\Interfaces\Http\FileInterface

getName(): ?string
getType(): ?string
getSize(): non-negative-int
getLocation(): ?string
getError(): int
isMoved(): bool
validate(): void
getExtension(): ?string
moveTo(
    string $path
): bool
toArray(): array{name: ?string, type: ?string, size: int, location: ?string, error: int}

Centum\Interfaces\Http\FilesInterface

add(
    Centum\Interfaces\Http\FileGroupInterface $fileGroup
): void
has(
    non-empty-string $id
): bool
get(
    non-empty-string $id
): Centum\Interfaces\Http\FileGroupInterface
all(): array<non-empty-string, Centum\Interfaces\Http\FileGroupInterface>
toArray(): array<non-empty-string, array<array{name: ?string, type: ?string, size: int, location: ?string, error: int}>>

Centum\Interfaces\Http\FormInterface

No methods.

Centum\Interfaces\Http\HeaderInterface

getName(): non-empty-string
getValue(): string
getHeaderString(): non-empty-string
send(): void
__toString(): non-empty-string

Centum\Interfaces\Http\HeadersInterface

get(
    non-empty-string $name
): Centum\Interfaces\Http\HeaderInterface
has(
    non-empty-string $name
): bool
matches(
    non-empty-string $name,
    string $value
): bool
send(): void
all(): array<non-empty-string, Centum\Interfaces\Http\HeaderInterface>
toArray(): array<non-empty-string, string>

Centum\Interfaces\Http\RequestInterface

getUri(): string
getMethod(): non-empty-string
getData(): Centum\Interfaces\Http\DataInterface
getHeaders(): Centum\Interfaces\Http\HeadersInterface
getCookies(): Centum\Interfaces\Http\CookiesInterface
getFiles(): Centum\Interfaces\Http\FilesInterface
getContent(): ?string

Centum\Interfaces\Http\ResponseInterface

getContent(): string
getStatus(): Centum\Http\Status
getHeaders(): Centum\Interfaces\Http\HeadersInterface
getCookies(): Centum\Interfaces\Http\CookiesInterface
sendHeaders(): void
sendContent(): void
send(): void
getRaw(): string
__toString(): string

Centum\Interfaces\Http\SessionInterface

start(): bool
isActive(): bool
has(
    non-empty-string $name
): bool
get(
    non-empty-string $name,
    mixed $defaultValue = null
): mixed
set(
    non-empty-string $name,
    mixed $value
): void
remove(
    non-empty-string $name
): void
clear(): void
all(): array<non-empty-string, mixed>