Completed
Pull Request — master (#4256)
by Craig
09:26 queued 03:36
created

HookBindingEntity::getCategory()   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 - 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\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
20
/**
21
 * HookBinding
22
 *
23
 * @ORM\Table(name="hook_binding")
24
 * @ORM\Entity(repositoryClass="Zikula\Bundle\HookBundle\Repository\HookBindingRepository")
25
 */
26
class HookBindingEntity extends EntityAccess
27
{
28
    use HookEntityTrait;
29
30
    /**
31
     * @ORM\Column(name="id", type="integer", nullable=false)
32
     * @ORM\Id
33
     * @ORM\GeneratedValue(strategy="IDENTITY")
34
     * @var int
35
     */
36
    private $id;
0 ignored issues
show
introduced by
The private property $id is not used, and could be removed.
Loading history...
37
38
    /**
39
     * @ORM\Column(name="sowner", type="string", length=40, nullable=false)
40
     * @Assert\Length(min="0", max="40", allowEmptyString="false")
41
     * @var string
42
     */
43
    private $sowner;
0 ignored issues
show
introduced by
The private property $sowner is not used, and could be removed.
Loading history...
44
45
    /**
46
     * @ORM\Column(name="powner", type="string", length=40, nullable=false)
47
     * @Assert\Length(min="0", max="40", allowEmptyString="false")
48
     * @var string
49
     */
50
    private $powner;
0 ignored issues
show
introduced by
The private property $powner is not used, and could be removed.
Loading history...
51
52
    /**
53
     * @ORM\Column(name="sareaid", type="string", length=512, nullable=false)
54
     * @Assert\Length(min="0", max="512", allowEmptyString="false")
55
     * @var string
56
     */
57
    private $sareaid;
0 ignored issues
show
introduced by
The private property $sareaid is not used, and could be removed.
Loading history...
58
59
    /**
60
     * @ORM\Column(name="pareaid", type="string", length=512, nullable=false)
61
     * @Assert\Length(min="0", max="512", allowEmptyString="false")
62
     * @var string
63
     */
64
    private $pareaid;
0 ignored issues
show
introduced by
The private property $pareaid is not used, and could be removed.
Loading history...
65
66
    /**
67
     * @ORM\Column(name="category", type="string", length=20, nullable=false)
68
     * @Assert\Length(min="0", max="20", allowEmptyString="false")
69
     * @var string
70
     */
71
    private $category;
72
73
    /**
74
     * @ORM\Column(name="sortorder", type="smallint", nullable=false)
75
     * @var int
76
     */
77
    private $sortorder;
78
79
    public function setCategory(string $category): void
80
    {
81
        $this->category = $category;
82
    }
83
84
    public function getCategory(): string
85
    {
86
        return $this->category;
87
    }
88
89
    public function setSortorder(int $sortorder): void
90
    {
91
        $this->sortorder = $sortorder;
92
    }
93
94
    public function getSortorder(): int
95
    {
96
        return $this->sortorder;
97
    }
98
}
99