MCPcopy Create free account
hub / github.com/php/frankenphp / test_with_constants

Function test_with_constants

testdata/integration/constants.go:62–75  ·  view source on GitHub ↗

export_php:function test_with_constants(int $status): string

(status int64)

Source from the content-addressed store, hash-verified

60
61// export_php:function test_with_constants(int $status): string
62func test_with_constants(status int64) unsafe.Pointer {
63 var result string
64 switch status {
65 case STATUS_PENDING:
66 result = "pending"
67 case STATUS_PROCESSING:
68 result = "processing"
69 case STATUS_COMPLETED:
70 result = "completed"
71 default:
72 result = "unknown"
73 }
74 return frankenphp.PHPString(result, false)
75}

Callers

nothing calls this directly

Calls 1

PHPStringFunction · 0.92

Tested by

no test coverage detected