Issues (188)

src/Entity/PeoplePackage.php (10 issues)

Labels
Severity
1
<?php
2
3
namespace ControleOnline\Entity;
4
5
use Symfony\Component\Serializer\Attribute\Groups; 
0 ignored issues
show
The type Symfony\Component\Serializer\Attribute\Groups 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 ControleOnline\Repository\PeoplePackageRepository;
7
use ControleOnline\Listener\LogListener;
0 ignored issues
show
The type ControleOnline\Listener\LogListener 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...
8
9
use ApiPlatform\Metadata\GetCollection;
0 ignored issues
show
The type ApiPlatform\Metadata\GetCollection 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...
10
use ApiPlatform\Metadata\Get;
0 ignored issues
show
The type ApiPlatform\Metadata\Get 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...
11
use ApiPlatform\Metadata\ApiResource;
0 ignored issues
show
The type ApiPlatform\Metadata\ApiResource 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...
12
use ApiPlatform\Metadata\ApiProperty;
0 ignored issues
show
The type ApiPlatform\Metadata\ApiProperty 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...
13
use ApiPlatform\Metadata\ApiFilter;
0 ignored issues
show
The type ApiPlatform\Metadata\ApiFilter 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...
14
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
The type Doctrine\ORM\Mapping 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...
15
use Doctrine\Common\Collections\ArrayCollection;
0 ignored issues
show
The type Doctrine\Common\Collections\ArrayCollection 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...
16
use Doctrine\Common\Collections\Collection;
0 ignored issues
show
The type Doctrine\Common\Collections\Collection 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...
17
#[ApiResource(operations: [new Get(security: 'is_granted(\'ROLE_CLIENT\')'), new GetCollection(security: 'is_granted(\'ROLE_CLIENT\')')], formats: ['jsonld', 'json', 'html', 'jsonhal', 'csv' => ['text/csv']], normalizationContext: ['groups' => ['people_package:read']], denormalizationContext: ['groups' => ['people_package:write']])]
18
#[ORM\Table(name: 'people_package')]
19
#[ORM\Index(name: 'people_id', columns: ['people_id'])]
20
#[ORM\Index(name: 'package_id', columns: ['package_id'])]
21
#[ORM\EntityListeners([LogListener::class])]
22
#[ORM\Entity(repositoryClass: PeoplePackageRepository::class)]
23
class PeoplePackage
24
{
25
    /**
26
     * @var int
27
     */
28
    #[ORM\Column(name: 'id', type: 'integer', nullable: false)]
29
    #[ORM\Id]
30
    #[ORM\GeneratedValue(strategy: 'IDENTITY')]
31
    private $id;
32
    /**
33
     * @var bool
34
     */
35
    #[ORM\Column(name: 'active', type: 'boolean', nullable: false, options: ['default' => '1'])]
36
    private $active = true;
37
    /**
38
     * @var Package
39
     */
40
    #[ORM\JoinColumn(name: 'package_id', referencedColumnName: 'id')]
41
    #[ORM\ManyToOne(targetEntity: Package::class)]
42
    private $package;
43
    /**
44
     * @var People
45
     */
46
    #[ORM\JoinColumn(name: 'people_id', referencedColumnName: 'id')]
47
    #[ORM\ManyToOne(targetEntity: People::class)]
48
    private $people;
49
    /**
50
     * Get the value of id
51
     */
52
    public function getId() 
53
    {
54
        return $this->id;
55
    }
56
    /**
57
     * Get the value of active
58
     */
59
    public function isActive() : bool
60
    {
61
        return $this->active;
62
    }
63
    /**
64
     * Set the value of active
65
     */
66
    public function setActive(bool $active) : self
67
    {
68
        $this->active = $active;
69
        return $this;
70
    }
71
    /**
72
     * Get the value of package
73
     */
74
    public function getPackage() : Package
75
    {
76
        return $this->package;
77
    }
78
    /**
79
     * Set the value of package
80
     */
81
    public function setPackage(Package $package) : self
82
    {
83
        $this->package = $package;
84
        return $this;
85
    }
86
    /**
87
     * Get the value of people
88
     */
89
    public function getPeople() : People
90
    {
91
        return $this->people;
92
    }
93
    /**
94
     * Set the value of people
95
     */
96
    public function setPeople(People $people) : self
97
    {
98
        $this->people = $people;
99
        return $this;
100
    }
101
}
102