Eloquent\Phony\Facade\AbstractFacade::onStatic PHP Méthode

onStatic() public static méthode

Create a new static handle.
public static onStatic ( Eloquent\Phony\Mock\Mock | Eloquent\Phony\Mock\Handle\Handle | ReflectionClas\ReflectionClass | string $class ) : StaticHandle
$class Eloquent\Phony\Mock\Mock | Eloquent\Phony\Mock\Handle\Handle | ReflectionClas\ReflectionClass | string The class.
Résultat Eloquent\Phony\Mock\Handle\StaticHandle The newly created handle.
    public static function onStatic($class)
    {
        return static::driver()->handleFactory->staticHandle($class);
    }