forked from 2amigos/yii2-google-maps-library
/
EventType.php
45 lines (43 loc) · 1023 Bytes
/
EventType.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* @copyright Copyright (c) 2014 2amigOS! Consulting Group LLC
* @link http://2amigos.us
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
*/
namespace dosamigos\google\maps;
/**
* EventType
*
* Describes the different valid event types supported.
*
* @author Antonio Ramirez <amigo.cobos@gmail.com>
* @link http://www.ramirezcobos.com/
* @link http://www.2amigos.us/
* @package dosamigos\google\maps
*/
class EventType
{
const DEFAULT_EVENT = 'DEFAULT';
const DEFAULT_ONCE = 'DEFAULT_ONCE';
const DOM = 'DOM';
const DOM_ONCE = 'DOM_ONCE';
/**
* Checks whether value is a valid [EventType] constant.
*
* @param $value
*
* @return bool
*/
public static function getIsValid($value)
{
return in_array(
$value,
[
static::DEFAULT_EVENT,
static::DEFAULT_ONCE,
static::DOM,
static::DOM_ONCE
]
);
}
}