You are here

public function Session::count in Zircon Profile 8

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

Returns the number of attributes.

Return value

int The number of attributes

File

vendor/symfony/http-foundation/Session/Session.php, line 153

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function count() {
  return count($this->storage
    ->getBag($this->attributeName)
    ->all());
}