for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oc\GeoCache\Enum;
class GeoCacheType
{
/**
* @var int
*/
const UNKNOWN = 1;
const TRADITIONAL = 2;
const MULTI = 3;
const VIRTUAL = 4;
const WEBCAM = 5;
const EVENT = 6;
const QUIZ = 7;
const MATH = 8;
const MOVING = 9;
const DRIVE_IN = 10;
* @var int[]
const EVENT_TYPES = [
self::EVENT
];
* Checks if the given geocache type is an event type.
*
* @param int $geoCacheType
* @return bool Returns true if this type is an event type
public static function isEventType($geoCacheType)
return in_array($geoCacheType, self::EVENT_TYPES, true);
}