Issues (219)

Document/RunArchive.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Dtc\QueueBundle\Document;
4
5
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
0 ignored issues
show
The type Doctrine\ODM\MongoDB\Mapping\Annotations was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
#[ODM\Document(db: 'dtc_queue', collection: 'run_archive')]
8
class RunArchive extends BaseRun
9
{
10
    #[ODM\Field(type: 'date', nullable: true)]
11
    protected $startedAt;
12
    #[ODM\Field(type: 'date', nullable: true)]
13
    #[ODM\Index(unique: false, order: 'desc')]
14
    protected $endedAt;
15
16
    #[ODM\Field(type: 'float', nullable: true)]
17
    protected $elapsed;
18
19
    #[ODM\Field(type: 'int', nullable: true)]
20
    protected $duration; // How long to run for in seconds
21
    #[ODM\Field(type: 'int', nullable: true)]
22
    protected $maxCount;
23
24
    #[ODM\Field(type: 'date')]
25
    protected $lastHeartbeatAt;
26
27
    #[ODM\Field(type: 'int', nullable: true)]
28
    protected $processTimeout;
29
30
    #[ODM\Field(type: 'string', nullable: true)]
31
    protected $currentJobId;
32
}
33