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

emonkak / php-database / 9077907597

14 May 2024 10:33AM UTC coverage: 99.677%. First build
9077907597

Pull #12

github

emonkak
build: migrate to Github Actions from Travis CI
Pull Request #12: Strict types

309 of 310 relevant lines covered (99.68%)

20.9 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
namespace Emonkak\Database;
4

5
class NestedTransactionState
6
{
7
    private int $level;
8

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

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

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

24
    public function decrementLevel(): void
25
    {
26
        $this->level--;
6✔
27
    }
28
}
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