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

eliashaeussler / version-bumper / 25885787898

14 May 2026 09:07PM UTC coverage: 85.446% (-3.2%) from 88.618%
25885787898

Pull #130

github

eliashaeussler
[FEATURE] Implement event lifecycle
Pull Request #130: [FEATURE] Implement event lifecycle

39 of 94 new or added lines in 12 files covered. (41.49%)

1227 of 1436 relevant lines covered (85.45%)

5.24 hits per line

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

0.0
/src/Event/VersionReleasePrepared.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the Composer package "eliashaeussler/version-bumper".
7
 *
8
 * Copyright (C) 2024-2026 Elias Häußler <elias@haeussler.dev>
9
 *
10
 * This program is free software: you can redistribute it and/or modify
11
 * it under the terms of the GNU General Public License as published by
12
 * the Free Software Foundation, either version 3 of the License, or
13
 * (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22
 */
23

24
namespace EliasHaeussler\VersionBumper\Event;
25

26
use Composer\EventDispatcher;
27
use EliasHaeussler\VersionBumper\Config;
28
use EliasHaeussler\VersionBumper\Result;
29
use EliasHaeussler\VersionBumper\Version;
30

31
/**
32
 * VersionReleasePrepared.
33
 *
34
 * @author Elias Häußler <elias@haeussler.dev>
35
 * @license GPL-3.0-or-later
36
 */
37
final class VersionReleasePrepared extends EventDispatcher\Event
38
{
39
    /**
40
     * @param list<Result\VersionBumpResult> $results
41
     * @param list<Config\FileToModify>      $modifiedFiles
42
     */
NEW
43
    public function __construct(
×
44
        private readonly array $results,
45
        private readonly array $modifiedFiles,
46
        private readonly Config\ReleaseOptions $options,
47
        private readonly Version\Version $version,
48
    ) {
NEW
49
        parent::__construct('version-release-prepared');
×
50
    }
51

52
    /**
53
     * @return list<Result\VersionBumpResult>
54
     */
NEW
55
    public function results(): array
×
56
    {
NEW
57
        return $this->results;
×
58
    }
59

60
    /**
61
     * @return list<Config\FileToModify>
62
     */
NEW
63
    public function modifiedFiles(): array
×
64
    {
NEW
65
        return $this->modifiedFiles;
×
66
    }
67

NEW
68
    public function options(): Config\ReleaseOptions
×
69
    {
NEW
70
        return $this->options;
×
71
    }
72

NEW
73
    public function version(): Version\Version
×
74
    {
NEW
75
        return $this->version;
×
76
    }
77
}
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