note 130480 added to language.enumerations.static-methods
| From: | Anonymous | Date: | Fri, 12 Sep 2025 10:23:49 +0000 |
| Subject: | note 130480 added to language.enumerations.static-methods | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222340@lists.php.net to get a copy of this message | ||
<?php
enum TaskStatus: string {
case PLANNED = "planned";
case PENDING = 'pending';
case TO_BE_CHECKED = 'toBeChecked';
case TO_BE_REVIEW = 'toBeReview';
case COMPLETED = 'completed';
public function taskLabels(): array {
return array_map(fn($status) => $status->value, self::cases());
}
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 212.234.159.66)
----
Manual Page -- https://php.net/manual/en/language.enumerations.static-methods.php
Edit -- https://main.php.net/note/edit/130480
Del: integrated -- https://main.php.net/note/delete/130480/integrated
Del: useless -- https://main.php.net/note/delete/130480/useless
Del: bad code -- https://main.php.net/note/delete/130480/bad+code
Del: spam -- https://main.php.net/note/delete/130480/spam
Del: non-english -- https://main.php.net/note/delete/130480/non-english
Del: in docs -- https://main.php.net/note/delete/130480/in+docs
Del: other reasons-- https://main.php.net/note/delete/130480
Reject -- https://main.php.net/note/reject/130480
Search -- https://main.php.net/manage/user-notes.php