public function totalObjects()
    {
        $total = 0;
        if (!empty($this->headers[self::TOTAL]) && is_array($this->headers[self::TOTAL])) {
            $total = (int) $this->headers[self::TOTAL][0];
        }

        return $total;
    }
public function totalObjects()
    {
        $total = 0;
        if (!empty($this->headers[self::TOTAL]) && is_array($this->headers[self::TOTAL])) {
            $total = (int) $this->headers[self::TOTAL][0];
        }

        return $total;
    }
public function totalObjects ( ) { $ total = 0 ; if ( ! empty ( $ this -> headers [ self :: TOTAL ] ) && is_array ( $ this -> headers [ self :: TOTAL ] ) ) { $ total = ( int ) $ this -> headers [ self :: TOTAL ] [ 0 ] ; } return $ total ; }
Total of object in the collections
Value come from X-Total header's value
@return int Number of Objects
Total of object in the collections Value come from X - Total header s value