Sleep

Illuminate\Support\Sleep

class src/Illuminate/Support/Sleep.php

__construct

v11.0.0 以前から

__construct($duration)
@param int|float|\DateInterval $duration
  1. v11.0.0 追加
    変更後
    __construct($duration) [@param int|float|\DateInterval $duration, @return void]
  2. v12.4.0 シグネチャ変更
    変更前
    __construct($duration) [@param int|float|\DateInterval $duration, @return void]
    変更後
    __construct($duration) [@param int|float|\DateInterval $duration]

__destruct

v11.0.0 以前から

__destruct()
@return void
  1. v11.0.0 追加
    変更後
    __destruct() [@return void]

and

v11.0.0 以前から

and($duration)
@param int|float $duration
@return $this
  1. v11.0.0 追加
    変更後
    and($duration) [@param int|float $duration, @return $this]

assertInsomniac

v11.0.0 以前から

static

static assertInsomniac()
@return void
  1. v11.0.0 追加
    変更後
    static assertInsomniac() [@return void]

assertNeverSlept

v11.0.0 以前から

static

static assertNeverSlept()
@return void
  1. v11.0.0 追加
    変更後
    static assertNeverSlept() [@return void]

assertSequence

v11.0.0 以前から

static

static assertSequence($sequence)
@param array $sequence
@return void
  1. v11.0.0 追加
    変更後
    static assertSequence($sequence) [@param array $sequence, @return void]

assertSlept

v11.0.0 以前から

static

static assertSlept($expected, $times = 1)
@param \Closure $expected
@param int $times
@return void
  1. v11.0.0 追加
    変更後
    static assertSlept($expected, $times = 1) [@param \Closure $expected, @param int $times, @return void]

assertSleptTimes

v11.0.0 以前から

static

static assertSleptTimes($expected)
@param int $expected
@return void
  1. v11.0.0 追加
    変更後
    static assertSleptTimes($expected) [@param int $expected, @return void]

fake

v11.0.0 以前から

static

static fake($value = true, $syncWithCarbon = false)
@param bool $value
@param bool $syncWithCarbon
@return void
  1. v11.0.0 追加
    変更後
    static fake($value = true, $syncWithCarbon = false) [@param bool $value, @param bool $syncWithCarbon, @return void]

for

v11.0.0 以前から

static

static for($duration)
@param \DateInterval|int|float $duration
@return static
  1. v11.0.0 追加
    変更後
    static for($duration) [@param \DateInterval|int|float $duration, @return static]

microsecond

v11.0.0 以前から

microsecond()
@return $this
  1. v11.0.0 追加
    変更後
    microsecond() [@return $this]

microseconds

v11.0.0 以前から

microseconds()
@return $this
  1. v11.0.0 追加
    変更後
    microseconds() [@return $this]

millisecond

v11.0.0 以前から

millisecond()
@return $this
  1. v11.0.0 追加
    変更後
    millisecond() [@return $this]

milliseconds

v11.0.0 以前から

milliseconds()
@return $this
  1. v11.0.0 追加
    変更後
    milliseconds() [@return $this]

minute

v11.0.0 以前から

minute()
@return $this
  1. v11.0.0 追加
    変更後
    minute() [@return $this]

minutes

v11.0.0 以前から

minutes()
@return $this
  1. v11.0.0 追加
    変更後
    minutes() [@return $this]

second

v11.0.0 以前から

second()
@return $this
  1. v11.0.0 追加
    変更後
    second() [@return $this]

seconds

v11.0.0 以前から

seconds()
@return $this
  1. v11.0.0 追加
    変更後
    seconds() [@return $this]

sleep

v11.0.0 以前から

static

static sleep($duration)
@param int|float $duration
@return static
  1. v11.0.0 追加
    変更後
    static sleep($duration) [@param int|float $duration, @return static]

syncWithCarbon

v11.0.0 以前から

static

static syncWithCarbon($value = true)
@return void
  1. v11.0.0 追加
    変更後
    static syncWithCarbon($value = true) [@return void]

then

v11.23.0 から

then(callable $then)
@param callable $then
@return mixed
  1. v11.23.0 追加
    変更後
    then(callable $then) [@param callable $then, @return mixed]

unless

v11.0.0 以前から

unless($condition)
@param (\Closure($this): bool)|bool $condition
@return $this
  1. v11.0.0 追加
    変更後
    unless($condition) [@param (\Closure($this): bool)|bool $condition, @return $this]

until

v11.0.0 以前から

static

static until($timestamp)
@param \DateTimeInterface|int|float|numeric-string $timestamp
@return static
  1. v11.0.0 追加
    変更後
    static until($timestamp) [@param \DateTimeInterface|int|float|numeric-string $timestamp, @return static]

usleep

v11.0.0 以前から

static

static usleep($duration)
@param int $duration
@return static
  1. v11.0.0 追加
    変更後
    static usleep($duration) [@param int $duration, @return static]

when

v11.0.0 以前から

when($condition)
@param (\Closure($this): bool)|bool $condition
@return $this
  1. v11.0.0 追加
    変更後
    when($condition) [@param (\Closure($this): bool)|bool $condition, @return $this]

whenFakingSleep

v11.0.0 以前から

static

static whenFakingSleep($callback)
@param callable $callback
@return void
  1. v11.0.0 追加
    変更後
    static whenFakingSleep($callback) [@param callable $callback, @return void]

while

v11.23.0 から

while(Closure $callback)
@param \Closure $callback
@return $this
  1. v11.23.0 追加
    変更後
    while(Closure $callback) [@param \Closure $callback, @return $this]