-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddressNormalizationStatusCodeType.php
69 lines (67 loc) · 1.72 KB
/
AddressNormalizationStatusCodeType.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
namespace PayPal\EnumType;
/**
* This class stands for AddressNormalizationStatusCodeType EnumType
* Meta information extracted from the WSDL
* - documentation: Normalization Status of the Address
* @subpackage Enumerations
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class AddressNormalizationStatusCodeType
{
/**
* Constant for value 'None'
* @return string 'None'
*/
const VALUE_NONE = 'None';
/**
* Constant for value 'Normalized'
* @return string 'Normalized'
*/
const VALUE_NORMALIZED = 'Normalized';
/**
* Constant for value 'Unnormalized'
* @return string 'Unnormalized'
*/
const VALUE_UNNORMALIZED = 'Unnormalized';
/**
* Constant for value 'UserPreferred'
* @return string 'UserPreferred'
*/
const VALUE_USER_PREFERRED = 'UserPreferred';
/**
* Return true if value is allowed
* @uses self::getValidValues()
* @param mixed $value value
* @return bool true|false
*/
public static function valueIsValid($value)
{
return ($value === null) || in_array($value, self::getValidValues(), true);
}
/**
* Return allowed values
* @uses self::VALUE_NONE
* @uses self::VALUE_NORMALIZED
* @uses self::VALUE_UNNORMALIZED
* @uses self::VALUE_USER_PREFERRED
* @return string[]
*/
public static function getValidValues()
{
return array(
self::VALUE_NONE,
self::VALUE_NORMALIZED,
self::VALUE_UNNORMALIZED,
self::VALUE_USER_PREFERRED,
);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}