Issues (21)

src/Entity/GeodisLogger.php (1 issue)

Labels
Severity
1
<?php declare(strict_types=1);
2
3
namespace GeodisBundle\Entity;
4
5
use App\Common\Traits\TimestampableTrait;
0 ignored issues
show
The type App\Common\Traits\TimestampableTrait 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
use Doctrine\ORM\Mapping as ORM;
7
8
#[ORM\Entity(repositoryClass: \GeodisBundle\Repository\GeodisLoggerRepository::class)]
9
#[ORM\Table(name: 'export_geodis_log')]
10
class GeodisLogger
11
{
12
    use TimestampableTrait;
13
14
    #[ORM\Id]
15
    #[ORM\GeneratedValue]
16
    #[ORM\Column(type: 'integer')]
17
    private ?int $id = null;
18
19
    // en XML c'était "text" mais la propriété est un entier : on aligne en integer
20
    #[ORM\Column(type: 'integer')]
21
    private int $code;
22
23
    #[ORM\Column(type: 'text')]
24
    private string $message;
25
26
    #[ORM\Column(type: 'text')]
27
    private string $called;
28
29
    #[ORM\Column(type: 'text')]
30
    private string $occured;
31
32
    public function getId(): ?int
33
    {
34
        return $this->id;
35
    }
36
37
    public function getCode(): int
38
    {
39
        return $this->code;
40
    }
41
42
    public function setCode(int $code): void
43
    {
44
        $this->code = $code;
45
    }
46
47
    public function getMessage(): string
48
    {
49
        return $this->message;
50
    }
51
52
    public function setMessage(string $message): void
53
    {
54
        $this->message = $message;
55
    }
56
57
    public function getCalled(): string
58
    {
59
        return $this->called;
60
    }
61
62
    public function setCalled(string $called): void
63
    {
64
        $this->called = $called;
65
    }
66
67
    public function getOccured(): string
68
    {
69
        return $this->occured;
70
    }
71
72
    public function setOccured(string $occured): void
73
    {
74
        $this->occured = $occured;
75
    }
76
}
77