MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / is_factory_class

Function is_factory_class

src/inheritance.rs:1084–1086  ·  view source on GitHub ↗

Check whether a parent class name is the Laravel `Illuminate\Database\Eloquent\Factories\Factory` base class.

(class_name: &str)

Source from the content-addressed store, hash-verified

1082/// Check whether a parent class name is the Laravel
1083/// `Illuminate\Database\Eloquent\Factories\Factory` base class.
1084fn is_factory_class(class_name: &str) -> bool {
1085 class_name == "Illuminate\\Database\\Eloquent\\Factories\\Factory" || class_name == "Factory"
1086}
1087
1088/// Build a substitution map for a trait based on `@use` generics and the
1089/// trait's `@template` parameters.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected