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

daycry / queues / 4024415350

pending completion
4024415350

push

github

daycry
Update Classes.php

4 of 6 new or added lines in 1 file covered. (66.67%)

85 of 88 relevant lines covered (96.59%)

5.26 hits per line

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

71.43
/src/Jobs/Classes.php
1
<?php
2

3
namespace Daycry\Queues\Jobs;
4

5
use Daycry\Queues\Interfaces\JobInterface;
6

7
class Classes implements JobInterface
8
{
9
    protected object $params;
10

11
    public function __construct(object $params)
12
    {
13
       $this->params = $params;
1✔
14
    }
15

16
    public function execute()
17
    {
18
        $inConstructor = isset($this->params->in_constructor) ? $this->params->in_constructor : false;
1✔
19

20
        if($inConstructor)
1✔
21
        {
NEW
22
            $class = new $this->params->class($this->params->params);
×
NEW
23
            return $class->{$this->params->method}();
×
24
        }else{
25
            $class = new $this->params->class;
1✔
26
            return $class->{$this->params->method}( $this->params->params );
1✔
27
        }
28
    }
29
}
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