name ){ return $status->value; } } throw new \ValueError("$name is not a valid value for enum " . self::class ); } }