Completed
Push — master ( 2d0383...d13a60 )
by philippe
03:58
created

AdSearch::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: wa81-15
5
 * Date: 15/02/19
6
 * Time: 10:48
7
 */
8
9
namespace App\Entity;
10
11
use Doctrine\Common\Collections\ArrayCollection;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
class AdSearch
15
{
16
    private $department;
17
18
    private $category;
19
20
    public function __construct()
21
    {
22
        $this->department = new ArrayCollection();
23
        $this->category = new ArrayCollection();
24
    }
25
26
    /**
27
     * @return mixed
28
     */
29
    public function getDepartment()
30
    {
31
        return $this->department;
32
    }
33
34
    /**
35
     * @param mixed $department
36
     */
37
    public function setDepartment($department)
38
    {
39
        $this->department = $department;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getCategory()
46
    {
47
        return $this->category;
48
    }
49
50
    /**
51
     * @param mixed $category
52
     */
53
    public function setCategory($category)
54
    {
55
        $this->category = $category;
56
    }
57
}