1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the core-bundle package. |
5
|
|
|
* |
6
|
|
|
* (c) 2019 WEBEWEB |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace WBW\Bundle\CoreBundle\Icon; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* Material design iconic font icon enumerator. |
16
|
|
|
* |
17
|
|
|
* @author webeweb <https://github.com/webeweb/> |
18
|
|
|
* @package WBW\Bundle\CoreBundle\Icon |
19
|
|
|
*/ |
20
|
|
|
class MaterialDesignIconicFontIconEnumerator { |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* Enumerates the borders. |
24
|
|
|
* |
25
|
|
|
* @return array Returns the borders enumeration. |
26
|
|
|
*/ |
27
|
|
|
public static function enumBorders() { |
28
|
|
|
return [ |
29
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_BORDER, |
30
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_BORDER_CIRCLE, |
31
|
|
|
]; |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* Enumerates the flips. |
36
|
|
|
* |
37
|
|
|
* @return array Returns the flips enumeration. |
38
|
|
|
*/ |
39
|
|
|
public static function enumFlips() { |
40
|
|
|
return [ |
41
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_FLIP_HORIZONTAL, |
42
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_FLIP_VERTICAL, |
43
|
|
|
]; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* Enumerates the pulls. |
48
|
|
|
* |
49
|
|
|
* @return array Returns the pulls enumeration. |
50
|
|
|
*/ |
51
|
|
|
public static function enumPulls() { |
52
|
|
|
return [ |
53
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_PULL_LEFT, |
54
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_PULL_RIGHT, |
55
|
|
|
]; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* Enumerates the rotates. |
60
|
|
|
* |
61
|
|
|
* @return array Returns the rotates enumeration. |
62
|
|
|
*/ |
63
|
|
|
public static function enumRotates() { |
64
|
|
|
return [ |
65
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_ROTATE_90, |
66
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_ROTATE_180, |
67
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_ROTATE_270, |
68
|
|
|
]; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* Enumerates the sizes. |
73
|
|
|
* |
74
|
|
|
* @return array Returns the sizes enumaration. |
75
|
|
|
*/ |
76
|
|
|
public static function enumSizes() { |
77
|
|
|
return [ |
78
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_LG, |
79
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_2X, |
80
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_3X, |
81
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_4X, |
82
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_5X, |
83
|
|
|
]; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* Enumerates the spins. |
88
|
|
|
* |
89
|
|
|
* @return array Returns the spins enumeration. |
90
|
|
|
*/ |
91
|
|
|
public static function enumSpins() { |
92
|
|
|
return [ |
93
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SPIN, |
94
|
|
|
MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SPIN_REVERSE, |
95
|
|
|
]; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
} |
99
|
|
|
|