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.

Product::__set()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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_product")
15
 */
16
class Product implements InputFilterAwareInterface
17
{
18
    protected $inputFilter;
19
20
    /**
21
     * @ORM\Id
22
     * @ORM\Column(type="integer");
23
     * @ORM\GeneratedValue(strategy="AUTO")
24
     */
25
    protected $customer_id;
26
27
    /**
28
     * @ORM\Column(type="string")
29
     */
30
    protected $product;
31
32
    /**
33
     * Magic getter to expose protected properties.
34
     *
35
     * @param string $property
36
     * @return mixed
37
     */
38
    public function __get($property)
39
    {
40
        return $this->$property;
41
    }
42
43
    /**
44
     * Magic setter to save protected properties.
45
     *
46
     * @param string $property
47
     * @param mixed $value
48
     */
49
    public function __set($property, $value)
50
    {
51
        $this->$property = $value;
52
    }
53
54
    /**
55
     * Convert the object to an array.
56
     *
57
     * @return array
58
     */
59
    public function getArrayCopy()
60
    {
61
        return get_object_vars($this);
62
    }
63
64
    /**
65
     * Populate from an array.
66
     *
67
     * @param array $data
68
     */
69
    public function populate($data = array())
70
    {
71
        $this->id = $data['id'];
72
        $this->name = $data['name'];
73
    }
74
75
76
    public function setInputFilter(InputFilterInterface $inputFilter)
77
    {
78
        throw new \Exception("Not used");
79
    }
80
81
    public function getInputFilter()
82
    {
83
84
    }
85
}
86