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
|
|
|
* Font Awesome icon enumerator. |
16
|
|
|
* |
17
|
|
|
* @author webeweb <https://github.com/webeweb/> |
18
|
|
|
* @package WBW\Bundle\CoreBundle\Icon |
19
|
|
|
*/ |
20
|
|
|
class FontAwesomeIconEnumerator { |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* Enumerates the animations. |
24
|
|
|
* |
25
|
|
|
* @return array Returns the animations enumeration. |
26
|
|
|
*/ |
27
|
|
|
public static function enumAnimations() { |
28
|
|
|
return [ |
29
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_ANIMATION_PULSE, |
30
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_ANIMATION_SPIN, |
31
|
|
|
]; |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* Enumerates the fonts. |
36
|
|
|
* |
37
|
|
|
* @return array Returns the fonts enumeration. |
38
|
|
|
*/ |
39
|
|
|
public static function enumFonts() { |
40
|
|
|
return [ |
41
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_FONT, |
42
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_FONT_BOLD, |
43
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_FONT_LIGHT, |
44
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_FONT_REGULAR, |
45
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_FONT_SOLID, |
46
|
|
|
]; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* Enumerates the pulls. |
51
|
|
|
* |
52
|
|
|
* @return array Returns the pulls enumaration. |
53
|
|
|
*/ |
54
|
|
|
public static function enumPulls() { |
55
|
|
|
return [ |
56
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_PULL_LEFT, |
57
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_PULL_RIGHT, |
58
|
|
|
]; |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* Enumerates the sizes. |
63
|
|
|
* |
64
|
|
|
* @return array Returns the sizes enumeration. |
65
|
|
|
*/ |
66
|
|
|
public static function enumSizes() { |
67
|
|
|
return [ |
68
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_LG, |
69
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_SM, |
70
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_XS, |
71
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_2X, |
72
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_3X, |
73
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_4X, |
74
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_5X, |
75
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_6X, |
76
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_7X, |
77
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_8X, |
78
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_9X, |
79
|
|
|
FontAwesomeIconInterface::FONT_AWESOME_SIZE_10X, |
80
|
|
|
]; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
} |
84
|
|
|
|