Completed
Push — master ( ef6dd3...b24cc2 )
by Axel
32:00 queued 26:46
created

HookBindingEntity::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula Foundation - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zikula\Bundle\HookBundle\Dispatcher\Storage\Doctrine\Entity;
15
16
use Doctrine\ORM\Mapping as ORM;
17
use Symfony\Component\Validator\Constraints as Assert;
18
use Zikula\Bundle\CoreBundle\Doctrine\EntityAccess;
19
use Zikula\Bundle\HookBundle\Dispatcher\Storage\Doctrine\Traits\HookEntityTrait;
0 ignored issues
show
Bug introduced by
The type Zikula\Bundle\HookBundle...\Traits\HookEntityTrait 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...
20
21
/**
22
 * HookBinding
23
 *
24
 * @ORM\Table(name="hook_binding")
25
 * @ORM\Entity(repositoryClass="Zikula\Bundle\HookBundle\Dispatcher\Storage\Doctrine\Entity\Repository\HookBindingRepository")
26
 */
27
class HookBindingEntity extends EntityAccess
28
{
29
    use HookEntityTrait;
30
31
    /**
32
     * @ORM\Column(name="id", type="integer", nullable=false)
33
     * @ORM\Id
34
     * @ORM\GeneratedValue(strategy="IDENTITY")
35
     * @var int
36
     */
37
    private $id;
0 ignored issues
show
introduced by
The private property $id is not used, and could be removed.
Loading history...
38
39
    /**
40
     * @ORM\Column(name="sowner", type="string", length=40, nullable=false)
41
     * @Assert\Length(min="0", max="40", allowEmptyString="false")
42
     * @var string
43
     */
44
    private $sowner;
0 ignored issues
show
introduced by
The private property $sowner is not used, and could be removed.
Loading history...
45
46
    /**
47
     * @ORM\Column(name="powner", type="string", length=40, nullable=false)
48
     * @Assert\Length(min="0", max="40", allowEmptyString="false")
49
     * @var string
50
     */
51
    private $powner;
0 ignored issues
show
introduced by
The private property $powner is not used, and could be removed.
Loading history...
52
53
    /**
54
     * @ORM\Column(name="sareaid", type="string", length=512, nullable=false)
55
     * @Assert\Length(min="0", max="512", allowEmptyString="false")
56
     * @var string
57
     */
58
    private $sareaid;
0 ignored issues
show
introduced by
The private property $sareaid is not used, and could be removed.
Loading history...
59
60
    /**
61
     * @ORM\Column(name="pareaid", type="string", length=512, nullable=false)
62
     * @Assert\Length(min="0", max="512", allowEmptyString="false")
63
     * @var string
64
     */
65
    private $pareaid;
0 ignored issues
show
introduced by
The private property $pareaid is not used, and could be removed.
Loading history...
66
67
    /**
68
     * @ORM\Column(name="category", type="string", length=20, nullable=false)
69
     * @Assert\Length(min="0", max="20", allowEmptyString="false")
70
     * @var string
71
     */
72
    private $category;
73
74
    /**
75
     * @ORM\Column(name="sortorder", type="smallint", nullable=false)
76
     * @var int
77
     */
78
    private $sortorder;
79
80
    public function setCategory(string $category): void
81
    {
82
        $this->category = $category;
83
    }
84
85
    public function getCategory(): string
86
    {
87
        return $this->category;
88
    }
89
90
    public function setSortorder(int $sortorder): void
91
    {
92
        $this->sortorder = $sortorder;
93
    }
94
95
    public function getSortorder(): int
96
    {
97
        return $this->sortorder;
98
    }
99
}
100