Passed
Push — master ( 41b396...8925e1 )
by Luiz Kim
15:46 queued 07:36
created

DisplayQueue::setDisplay()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
namespace ControleOnline\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
Bug introduced by
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...
6
7
use ApiPlatform\Core\Annotation\ApiResource;
0 ignored issues
show
Bug introduced by
The type ApiPlatform\Core\Annotation\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...
8
use Symfony\Component\Serializer\Annotation\Groups;
0 ignored issues
show
Bug introduced by
The type Symfony\Component\Serializer\Annotation\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...
9
use ApiPlatform\Core\Annotation\ApiFilter;
0 ignored issues
show
Bug introduced by
The type ApiPlatform\Core\Annotation\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...
10
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
0 ignored issues
show
Bug introduced by
The type ApiPlatform\Core\Bridge\...Orm\Filter\SearchFilter 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
12
13
/**
14
 * @ORM\EntityListeners({App\Listener\LogListener::class})
15
 * @ApiResource(
16
 *     attributes={
17
 *          "formats"={"jsonld", "json", "html", "jsonhal", "csv"={"text/csv"}},
18
 *          "access_control"="is_granted('ROLE_CLIENT')"
19
 *     }, 
20
 *     normalizationContext  ={"groups"={"display_queue_read"}},
21
 *     denormalizationContext={"groups"={"display_queue_write"}},
22
 *     attributes            ={"access_control"="is_granted('ROLE_CLIENT')"},
23
 *     collectionOperations  ={
24
 *          "get"              ={
25
 *            "access_control"="is_granted('ROLE_CLIENT')", 
26
 *          },
27
 *     },
28
 *     itemOperations        ={
29
 *         "get"           ={
30
 *           "access_control"="is_granted('ROLE_CLIENT')", 
31
 *         },
32
 *         "put"           ={
33
 *           "access_control"="is_granted('ROLE_CLIENT')",  
34
 *         },
35
 *         "delete"           ={
36
 *           "access_control"="is_granted('ROLE_CLIENT')",  
37
 *         }, 
38
 *     }
39
 * )
40
 * @ORM\Table(name="display_queue", uniqueConstraints={@ORM\UniqueConstraint(name="display_id", columns={"display_id", "queue_id"})}, indexes={@ORM\Index(name="queue_id", columns={"queue_id"}), @ORM\Index(name="IDX_7EAD648851A2DF33", columns={"display_id"})})
41
 * @ORM\Entity
42
 */
43
44
class DisplayQueue
45
{
46
    /**
47
     * @var int
48
     *
49
     * @ORM\Column(name="id", type="integer", nullable=false)
50
     * @ORM\Id
51
     * @ORM\GeneratedValue(strategy="IDENTITY")
52
     * @Groups({"order_read","display_queue_read", "display_queue_write"})    
53
     */
54
    private $id;
55
56
    /**
57
     * @var \Display
0 ignored issues
show
Bug introduced by
The type Display 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...
58
     *
59
     * @ORM\ManyToOne(targetEntity="Display")
60
     * @ORM\JoinColumns({
61
     *   @ORM\JoinColumn(name="display_id", referencedColumnName="id")
62
     * })
63
     * @Groups({"order_read","display_queue_read", "display_queue_write"})    
64
     */
65
    private $display;
66
67
    /**
68
     * @var \Queue
0 ignored issues
show
Bug introduced by
The type Queue 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...
69
     *
70
     * @ORM\ManyToOne(targetEntity="Queue")
71
     * @ORM\JoinColumns({
72
     *   @ORM\JoinColumn(name="queue_id", referencedColumnName="id")
73
     * })     
74
     */
75
    private $queue;
76
77
78
79
    /**
80
     * Get the value of id
81
     */
82
    public function getId()
83
    {
84
        return $this->id;
85
    }
86
87
    /**
88
     * Set the value of id
89
     */
90
    public function setId( $id): self
91
    {
92
        $this->id = $id;
93
94
        return $this;
95
    }
96
97
    /**
98
     * Get the value of display
99
     */
100
    public function getDisplay()
101
    {
102
        return $this->display;
103
    }
104
105
    /**
106
     * Set the value of display
107
     */
108
    public function setDisplay($display): self
109
    {
110
        $this->display = $display;
111
112
        return $this;
113
    }
114
115
    /**
116
     * Get the value of queue
117
     */
118
    public function getQueue()
119
    {
120
        return $this->queue;
121
    }
122
123
    /**
124
     * Set the value of queue
125
     */
126
    public function setQueue($queue): self
127
    {
128
        $this->queue = $queue;
129
130
        return $this;
131
    }
132
}
133