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

tochka-developers / queue-promises / 9935584685

15 Jul 2024 07:44AM UTC coverage: 47.259% (-18.3%) from 65.524%
9935584685

push

github

darkdarin
fix: tests

4 of 4 new or added lines in 2 files covered. (100.0%)

431 existing lines in 40 files now uncovered.

612 of 1295 relevant lines covered (47.26%)

2.53 hits per line

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

87.5
/src/Events/AbstractPromiseJobStateChangeEvent.php
1
<?php
2

3
namespace Tochka\Promises\Events;
4

5
use Tochka\Promises\Contracts\NestedEventContract;
6
use Tochka\Promises\Contracts\StateChangedContract;
7
use Tochka\Promises\Core\BaseJob;
8
use Tochka\Promises\Enums\StateEnum;
9

10
abstract class AbstractPromiseJobStateChangeEvent implements StateChangedContract, NestedEventContract
11
{
12
    private BaseJob $promiseJob;
13
    private StateEnum $fromState;
14
    private StateEnum $toState;
15
    private bool $nested;
16

17
    public function __construct(BaseJob $promiseJob, StateEnum $fromState, StateEnum $toState, bool $nested = false)
18
    {
19
        $this->promiseJob = $promiseJob;
3✔
20
        $this->fromState = $fromState;
3✔
21
        $this->toState = $toState;
3✔
22
        $this->nested = $nested;
3✔
23
    }
24

25
    public function isNested(): bool
26
    {
UNCOV
27
        return $this->nested;
×
28
    }
29

30
    public function getPromiseJob(): BaseJob
31
    {
32
        return $this->promiseJob;
9✔
33
    }
34

35
    public function getFromState(): StateEnum
36
    {
37
        return $this->fromState;
9✔
38
    }
39

40
    public function getToState(): StateEnum
41
    {
42
        return $this->toState;
9✔
43
    }
44
}
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