1
|
|
|
<?php |
2
|
|
|
namespace Route4Me\Enum; |
3
|
|
|
|
4
|
|
|
class ActivityTypes |
5
|
|
|
{ |
6
|
|
|
const AREA_REMOVED = 'area-removed'; |
7
|
|
|
const AREA_ADDED = 'area-added'; |
8
|
|
|
const AREA_UPDATED = 'area-updated'; |
9
|
|
|
const DELETE_DESTINATION = 'delete-destination'; |
10
|
|
|
const INSERT_DESTINATION = 'insert-destination'; |
11
|
|
|
const DESTINATION_OUT_SEQUENCE = 'destination-out-sequence'; |
12
|
|
|
const DRIVER_ARRIVED_EARLY = 'driver-arrived-early'; |
13
|
|
|
const DRIVER_ARRIVED_LATE = 'driver-arrived-late'; |
14
|
|
|
const DRIVER_ARRIVED_ON_TIME = 'driver-arrived-on-time'; |
15
|
|
|
const GEOFENCE_LEFT = 'geofence-left'; |
16
|
|
|
const GEOFENCE_ENTERED = 'geofence-entered'; |
17
|
|
|
const MARK_DESTINATION_DEPARTED = 'mark-destination-departed'; |
18
|
|
|
const MARK_DESTINATION_VISITED = 'mark-destination-visited'; |
19
|
|
|
const MEMBER_CREATED = 'member-created'; |
20
|
|
|
const MEMBER_DELETED = 'member-deleted'; |
21
|
|
|
const MEMBER_MODIFIED = 'member-modified'; |
22
|
|
|
const MOVE_DESTINATION = 'move-destination'; |
23
|
|
|
const NOTE_INSERT = 'note-insert'; |
24
|
|
|
const ROUTE_DELETE = 'route-delete'; |
25
|
|
|
const ROUTE_OPTIMIZED = 'route-optimized'; |
26
|
|
|
const ROUTE_OWNER_CHANGED = 'route-owner-changed'; |
27
|
|
|
const ROUTE_DUPLICATE = 'route-duplicate'; |
28
|
|
|
const UPDATE_DESTINATIONS = 'update-destinations'; |
29
|
|
|
const USER_MESSAGE = 'user_message'; |
30
|
|
|
|
31
|
|
|
static function getConstants() { |
|
|
|
|
32
|
|
|
$atc = new \ReflectionClass('Route4Me\\Enum\\ActivityTypes'); |
33
|
|
|
return $atc->getConstants(); |
34
|
|
|
} |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
|
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.