1 | <?php |
||
3 | class NodesEntity extends Oc\Repository\AbstractEntity |
||
|
|||
4 | { |
||
5 | /** @var int */ |
||
6 | public $id; |
||
7 | |||
8 | /** @var string */ |
||
9 | public $name; |
||
10 | |||
11 | /** @var string */ |
||
12 | public $url; |
||
13 | |||
14 | /** @var string */ |
||
15 | public $waypointPrefix; |
||
16 | |||
17 | /** |
||
18 | * @return bool |
||
19 | */ |
||
20 | public function isNew() |
||
24 | } |
||
25 |
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.