forked from 2amigos/yii2-google-maps-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventType.php
More file actions
49 lines (45 loc) · 973 Bytes
/
EventType.php
File metadata and controls
49 lines (45 loc) · 973 Bytes
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
46
47
48
49
<?php
/*
*
* @copyright Copyright (c) 2013-2019 2amigos
* @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 <hola@2amigos.us>
*
* @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
]
);
}
}