Issues (219)

Document/JobArchive.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: 'job_archive')]
8
class JobArchive extends BaseJob
9
{
10
    #[ODM\Field(type: 'int', nullable: true)]
11
    protected $priority;
12
13
    #[ODM\Field(type: 'date', nullable: true)]
14
    protected $whenAt;
15
16
    /**
17
     * When the job finished.
18
     */
19
    #[ODM\Field(type: 'date', nullable: true)]
20
    #[ODM\Index(unique: false, order: 'desc')]
21
    protected $finishedAt;
22
23
    #[ODM\Field(type: 'float')]
24
    protected $elapsed;
25
26
    /**
27
     * When the job finished.
28
     */
29
    #[ODM\Field(type: 'date', nullable: true)]
30
    protected $startedAt;
31
32
    #[ODM\Field(type: 'date', nullable: true)]
33
    protected $expiresAt;
34
35
    #[ODM\Field(type: 'date')]
36
    #[ODM\Index(unique: false)]
37
    protected $updatedAt;
38
}
39