Return the PHP keyword for a class-like owner. Produces `"class"`, `"interface"`, `"trait"`, or `"enum"`.
(owner: &ClassInfo)
| 267 | /// |
| 268 | /// Produces `"class"`, `"interface"`, `"trait"`, or `"enum"`. |
| 269 | pub(super) fn owner_kind_keyword(owner: &ClassInfo) -> &'static str { |
| 270 | match owner.kind { |
| 271 | ClassLikeKind::Interface => "interface", |
| 272 | ClassLikeKind::Trait => "trait", |
| 273 | ClassLikeKind::Enum => "enum", |
| 274 | _ => "class", |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | /// Return the suffix after the owner name for backed enums (e.g. `": string"`). |
| 279 | /// |
no outgoing calls
no test coverage detected