final class NamedModel
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Resolves a configured model using the application's Composer autoloader.

Methods§

public static function resolve(string $name): callable(list<Domain>): ?Domain

A callable function/static method, or a no-argument invokable class.

Parameters

$namestring

Returns

callable(list<Domain>): ?Domain

Throws

RuntimeException When the name does not identify a model
Test cases 2
Called from 1
Calls 4

Test cases 5§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 3

Relations§

Static calls 1