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

keradus / PHP-CS-Fixer / 17319949156

29 Aug 2025 09:20AM UTC coverage: 94.696% (-0.05%) from 94.744%
17319949156

push

github

keradus
CS

28333 of 29920 relevant lines covered (94.7%)

45.63 hits per line

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

0.0
/src/Tokenizer/Analyzer/Analysis/AbstractControlCaseStructuresAnalysis.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of PHP CS Fixer.
7
 *
8
 * (c) Fabien Potencier <fabien@symfony.com>
9
 *     Dariusz RumiƄski <dariusz.ruminski@gmail.com>
10
 *
11
 * This source file is subject to the MIT license that is bundled
12
 * with this source code in the file LICENSE.
13
 */
14

15
namespace PhpCsFixer\Tokenizer\Analyzer\Analysis;
16

17
/**
18
 * @readonly
19
 *
20
 * @internal
21
 *
22
 * @no-named-arguments Parameter names are not covered by the backward compatibility promise.
23
 */
24
abstract class AbstractControlCaseStructuresAnalysis
25
{
26
    private int $index;
27

28
    private int $open;
29

30
    private int $close;
31

32
    public function __construct(int $index, int $open, int $close)
33
    {
34
        $this->index = $index;
×
35
        $this->open = $open;
×
36
        $this->close = $close;
×
37
    }
38

39
    public function getIndex(): int
40
    {
41
        return $this->index;
×
42
    }
43

44
    public function getOpenIndex(): int
45
    {
46
        return $this->open;
×
47
    }
48

49
    public function getCloseIndex(): int
50
    {
51
        return $this->close;
×
52
    }
53
}
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

© 2026 Coveralls, Inc