yii\web\HeaderCollection::offsetGet PHP Метод

offsetGet() публичный Метод

This method is required by the SPL interface [[\ArrayAccess]]. It is implicitly called when you use something like $header = $collection[$name];. This is equivalent to HeaderCollection::get.
public offsetGet ( string $name ) : string
$name string the header name
Результат string the header value with the specified name, null if the named header does not exist.
    public function offsetGet($name)
    {
        return $this->get($name);
    }