GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Customer::populate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace ZfTable\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Zend\InputFilter\InputFilter;
7
use Zend\InputFilter\Factory as InputFactory;
8
use Zend\InputFilter\InputFilterAwareInterface;
9
use Zend\InputFilter\InputFilterInterface;
10
11
/**
12
 *
13
 * @ORM\Entity
14
 * @ORM\Table(name="zftable_customer")
15
 * @property string $name
16
 * @property int $idcustomer
17
 */
18
class Customer implements InputFilterAwareInterface
19
{
20
    protected $inputFilter;
21
22
23
    /**
24
     * @ORM\ManyToOne(targetEntity="Product")
25
     * @ORM\JoinColumn(name="idcustomer", referencedColumnName="customer_id")
26
     */
27
    protected $product;
28
29
    /**
30
     * @ORM\Id
31
     * @ORM\Column(type="integer");
32
     * @ORM\GeneratedValue(strategy="AUTO")
33
     */
34
    protected $idcustomer;
35
36
    /**
37
     * @ORM\Column(type="string")
38
     */
39
    protected $name;
40
41
     /**
42
     * @ORM\Column(type="string")
43
     */
44
    protected $surname;
45
46
    /**
47
     * @ORM\Column(type="string")
48
     */
49
    protected $street;
50
51
    /**
52
     * @ORM\Column(type="string")
53
     */
54
    protected $city;
55
56
    /**
57
     * @ORM\Column(type="string")
58
     */
59
    protected $active;
60
61
    /**
62
     * Magic getter to expose protected properties.
63
     *
64
     * @param string $property
65
     * @return mixed
66
     */
67
    public function __get($property)
68
    {
69
        return $this->$property;
70
    }
71
72
    /**
73
     * Magic setter to save protected properties.
74
     *
75
     * @param string $property
76
     * @param mixed $value
77
     */
78
    public function __set($property, $value)
79
    {
80
        $this->$property = $value;
81
    }
82
83
    /**
84
     * Convert the object to an array.
85
     *
86
     * @return array
87
     */
88
    public function getArrayCopy()
89
    {
90
        return get_object_vars($this);
91
    }
92
93
    /**
94
     * Populate from an array.
95
     *
96
     * @param array $data
97
     */
98
    public function populate($data = array())
99
    {
100
        $this->id = $data['id'];
101
        $this->name = $data['name'];
102
    }
103
104
    public function setInputFilter(InputFilterInterface $inputFilter)
105
    {
106
        throw new \Exception("Not used");
107
    }
108
109
    public function getInputFilter()
110
    {
111
112
    }
113
}
114