Pipeline.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \Illuminate\Pipeline\Pipeline send(mixed $passable)
  5. * @method static \Illuminate\Pipeline\Pipeline through(mixed $pipes)
  6. * @method static \Illuminate\Pipeline\Pipeline pipe(mixed $pipes)
  7. * @method static \Illuminate\Pipeline\Pipeline via(string $method)
  8. * @method static mixed then(\Closure $destination)
  9. * @method static mixed thenReturn()
  10. * @method static \Illuminate\Pipeline\Pipeline finally(\Closure $callback)
  11. * @method static \Illuminate\Pipeline\Pipeline withinTransaction(string|null|\UnitEnum|false $withinTransaction = null)
  12. * @method static \Illuminate\Pipeline\Pipeline setContainer(\Illuminate\Contracts\Container\Container $container)
  13. * @method static \Illuminate\Pipeline\Pipeline|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  14. * @method static \Illuminate\Pipeline\Pipeline|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  15. * @method static void macro(string $name, object|callable $macro)
  16. * @method static void mixin(object $mixin, bool $replace = true)
  17. * @method static bool hasMacro(string $name)
  18. * @method static void flushMacros()
  19. *
  20. * @see \Illuminate\Pipeline\Pipeline
  21. */
  22. class Pipeline extends Facade
  23. {
  24. /**
  25. * Indicates if the resolved instance should be cached.
  26. *
  27. * @var bool
  28. */
  29. protected static $cached = false;
  30. /**
  31. * Get the registered name of the component.
  32. *
  33. * @return string
  34. */
  35. protected static function getFacadeAccessor()
  36. {
  37. return 'pipeline';
  38. }
  39. }