1 | <?php |
||
3 | class GkItemEntity extends Oc\Repository\AbstractEntity |
||
|
|||
4 | { |
||
5 | /** @var int */ |
||
6 | public $id; |
||
7 | |||
8 | /** @var string */ |
||
9 | public $name; |
||
10 | |||
11 | /** @var longtext */ |
||
12 | public $description; |
||
13 | |||
14 | /** @var int */ |
||
15 | public $userid; |
||
16 | |||
17 | /** @var DateTime */ |
||
18 | public $datecreated; |
||
19 | |||
20 | /** @var float */ |
||
21 | public $distancetravelled; |
||
22 | |||
23 | /** @var float */ |
||
24 | public $latitude; |
||
25 | |||
26 | /** @var float */ |
||
27 | public $longitude; |
||
28 | |||
29 | /** @var int */ |
||
30 | public $typeid; |
||
31 | |||
32 | /** @var int */ |
||
33 | public $stateid; |
||
34 | |||
35 | /** |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function isNew() |
||
42 | } |
||
43 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.