Documentation

HeaderInterface extends Countable, IteratorAggregate

Tags
psalm-type

TKey=array-key

psalm-type

TValue=mixed

psalm-import-type

TypeEnum from Type

extends

IteratorAggregate<TKey, TValue>

Table of Contents

Methods

getValue()  : mixed
isEmpty()  : bool
Checks if any value present.
withValue()  : static

Methods

getValue()

public getValue(TKey $name[, Type|TypeEnum|mixed $type = null ]) : mixed
Parameters
$name : TKey
$type : Type|TypeEnum|mixed = null
Return values
mixed

Returns null if value not found.

isEmpty()

Checks if any value present.

public isEmpty() : bool
Return values
bool

withValue()

public withValue(TKey $name, TValue $value) : static
Parameters
$name : TKey
$value : TValue
Tags
psalm-mutation-free
Return values
static

        
On this page

Search results