| 1 | <?php |
||
| 3 | class OkapiStatsMonthlyEntity extends Oc\Repository\AbstractEntity |
||
|
|
|||
| 4 | { |
||
| 5 | /** @var string */ |
||
| 6 | public $consumerKey; |
||
| 7 | |||
| 8 | /** @var int */ |
||
| 9 | public $userId; |
||
| 10 | |||
| 11 | /** @var DateTime */ |
||
| 12 | public $periodStart; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | public $serviceName; |
||
| 16 | |||
| 17 | /** @var int */ |
||
| 18 | public $totalCalls; |
||
| 19 | |||
| 20 | /** @var int */ |
||
| 21 | public $httpCalls; |
||
| 22 | |||
| 23 | /** @var float */ |
||
| 24 | public $totalRuntime; |
||
| 25 | |||
| 26 | /** @var float */ |
||
| 27 | public $httpRuntime; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function isNew() |
||
| 36 | } |
||
| 37 |
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.