ok
Direktori : /home2/selectio/public_html/fms-worksuite/vendor/nunomaduro/larastan/stubs/ |
Current File : /home2/selectio/public_html/fms-worksuite/vendor/nunomaduro/larastan/stubs/Conditionable.stub |
<?php namespace Illuminate\Support\Traits; use Closure; trait Conditionable { /** * Apply the callback if the given "value" is (or resolves to) truthy. * * @template TWhenParameter * @template TWhenReturnType * * @param (\Closure($this): TWhenParameter)|TWhenParameter $value * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default * @return (TWhenReturnType is void|null ? $this : TWhenReturnType) */ public function when($value, callable $callback = null, callable $default = null); /** * Apply the callback if the given "value" is (or resolves to) falsy. * * @template TUnlessParameter * @template TUnlessReturnType * * @param (\Closure($this): TUnlessParameter)|TUnlessParameter $value * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default * @return (TUnlessReturnType is void|null ? $this : TUnlessReturnType) */ public function unless($value, callable $callback = null, callable $default = null); }