platform/api/laravel/Foundation/Testing/Concerns/InteractsWithTime.yaml

74 lines
1.4 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: InteractsWithTime
class_comment: null
dependencies:
- name: Wormhole
type: class
source: Illuminate\Foundation\Testing\Wormhole
- name: Carbon
type: class
source: Illuminate\Support\Carbon
properties: []
methods:
- name: freezeTime
visibility: public
parameters:
- name: callback
default: 'null'
comment: '# * Freeze time.
# *
# * @param callable|null $callback
# * @return mixed'
- name: freezeSecond
visibility: public
parameters:
- name: callback
default: 'null'
comment: '# * Freeze time at the beginning of the current second.
# *
# * @param callable|null $callback
# * @return mixed'
- name: travel
visibility: public
parameters:
- name: value
comment: '# * Begin travelling to another time.
# *
# * @param int $value
# * @return \Illuminate\Foundation\Testing\Wormhole'
- name: travelTo
visibility: public
parameters:
- name: date
- name: callback
default: 'null'
comment: '# * Travel to another time.
# *
# * @param \DateTimeInterface|\Closure|\Illuminate\Support\Carbon|string|bool|null $date
# * @param callable|null $callback
# * @return mixed'
- name: travelBack
visibility: public
parameters: []
comment: '# * Travel back to the current time.
# *
# * @return \DateTimeInterface'
traits:
- Illuminate\Foundation\Testing\Wormhole
- Illuminate\Support\Carbon
interfaces: []