You are here

public function HeaderBag::count in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/HeaderBag.php \Symfony\Component\HttpFoundation\HeaderBag::count()

Returns the number of headers.

Return value

int The number of headers

File

vendor/symfony/http-foundation/HeaderBag.php, line 283

Class

HeaderBag
HeaderBag is a container for HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

public function count() {
  return count($this->headers);
}