• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

emonkak / php-database / 9154826075

20 May 2024 06:59AM UTC coverage: 99.77%. Remained the same
9154826075

push

github

emonkak
docs: clean up comments

433 of 434 relevant lines covered (99.77%)

20.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/NestedTransactionState.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Emonkak\Database;
6

7
class NestedTransactionState
8
{
9
    private int $level;
10

11
    public function __construct(int $level = 0)
6✔
12
    {
13
        $this->level = $level;
6✔
14
    }
15

16
    public function getLevel(): int
6✔
17
    {
18
        return $this->level;
6✔
19
    }
20

21
    public function incrementLevel(): void
6✔
22
    {
23
        $this->level++;
6✔
24
    }
25

26
    public function decrementLevel(): void
6✔
27
    {
28
        $this->level--;
6✔
29
    }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc