|
@@ 155-166 (lines=12) @@
|
| 152 |
|
* @return \rmrevin\yii\fontawesome\component\Icon |
| 153 |
|
* @throws \yii\base\InvalidConfigException |
| 154 |
|
*/ |
| 155 |
|
public function rotate($value) |
| 156 |
|
{ |
| 157 |
|
return $this->addCssClass( |
| 158 |
|
FontAwesome::$basePrefix . '-rotate-' . $value, |
| 159 |
|
in_array((string)$value, [FontAwesome::ROTATE_90, FontAwesome::ROTATE_180, FontAwesome::ROTATE_270], true), |
| 160 |
|
sprintf( |
| 161 |
|
'%s - invalid value. Use one of the constants: %s.', |
| 162 |
|
'FontAwesome::rotate()', |
| 163 |
|
'FontAwesome::ROTATE_90, FontAwesome::ROTATE_180, FontAwesome::ROTATE_270' |
| 164 |
|
) |
| 165 |
|
); |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
/** |
| 169 |
|
* @param string $value |
|
@@ 173-184 (lines=12) @@
|
| 170 |
|
* @return \rmrevin\yii\fontawesome\component\Icon |
| 171 |
|
* @throws \yii\base\InvalidConfigException |
| 172 |
|
*/ |
| 173 |
|
public function flip($value) |
| 174 |
|
{ |
| 175 |
|
return $this->addCssClass( |
| 176 |
|
FontAwesome::$basePrefix . '-flip-' . $value, |
| 177 |
|
in_array((string)$value, [FontAwesome::FLIP_HORIZONTAL, FontAwesome::FLIP_VERTICAL], true), |
| 178 |
|
sprintf( |
| 179 |
|
'%s - invalid value. Use one of the constants: %s.', |
| 180 |
|
'FontAwesome::flip()', |
| 181 |
|
'FontAwesome::FLIP_HORIZONTAL, FontAwesome::FLIP_VERTICAL' |
| 182 |
|
) |
| 183 |
|
); |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
/** |
| 187 |
|
* @param string $class |