<?php constant(string $name): mixed
<?php return new ArrayObject((new Collection($data))->map(function ($value) use ($enumClass) { return is_subclass_of($enumClass, BackedEnum::class) ? $enumClass::from($value) : constant($enumClass.'::'.$value); })->toArray()); }
<?php return (new Collection($data))->map(function ($value) use ($enumClass) { return is_subclass_of($enumClass, BackedEnum::class) ? $enumClass::from($value) : constant($enumClass.'::'.$value); }); }
<?php { return is_subclass_of($enumClass, BackedEnum::class) ? $enumClass::from($value) : constant($enumClass.'::'.$value); }
<?php public function validateTimezone($attribute, $value, $parameters = []) { return in_array($value, timezone_identifiers_list( constant(DateTimeZone::class.'::'.Str::upper($parameters[0] ?? 'ALL')), isset($parameters[1]) ? Str::upper($parameters[1]) : null, ), true); }