We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d7c2e commit 64871d8Copy full SHA for 64871d8
src/Enum/Enum.php
@@ -42,10 +42,7 @@ abstract class Enum implements ValueObjectInterface
42
*/
43
public function __construct($value)
44
{
45
- if ($value instanceof static) {
46
- $value = $value->getValue();
47
- }
48
-
+ Assert::notEmpty($value);
49
Assert::oneOf($value, $this->toArray());
50
51
$this->value = $value;
@@ -80,7 +77,7 @@ public static function __callStatic($name, $arguments)
80
77
*
81
78
* @return string
82
79
83
- protected static function convertUnCamelCase($name): string
+ private static function convertUnCamelCase($name): string
84
85
return strtoupper(preg_replace('/([a-z])([A-Z])/', "\\1_\\2", $name));
86
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments