class Schedule extends Facade (View source)

Properties

static protected Application|null $app

The application instance being facaded.

from  Facade
static protected array $resolvedInstance

The resolved object instances.

from  Facade
static protected bool $cached

Indicates if the resolved instance should be cached.

from  Facade

Methods

static void
resolved(Closure $callback)

Run a Closure when the facade has been resolved.

from  Facade
static MockInterface
spy()

Convert the facade into a Mockery spy.

from  Facade
static MockInterface
partialMock()

Initiate a partial mock on the facade.

from  Facade
static Expectation
shouldReceive()

Initiate a mock expectation on the facade.

from  Facade
static Expectation
expects()

Initiate a mock expectation on the facade.

from  Facade
static MockInterface
createFreshMockInstance()

Create a fresh mock instance for the given class.

from  Facade
static MockInterface
createMock()

Create a fresh mock instance for the given class.

from  Facade
static bool
isMock()

Determines whether a mock is set as the instance of the facade.

from  Facade
static string|null
getMockableClass()

Get the mockable class for the bound instance.

from  Facade
static void
swap(mixed $instance)

Hotswap the underlying instance behind the facade.

from  Facade
static bool
isFake()

Determines whether a "fake" has been set as the facade instance.

from  Facade
static mixed
getFacadeRoot()

Get the root object behind the facade.

from  Facade
static string
getFacadeAccessor()

Get the registered name of the component.

static mixed
resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

from  Facade
static void
clearResolvedInstance(string $name)

Clear a resolved facade instance.

from  Facade
static void
clearResolvedInstances()

Clear all of the resolved instances.

from  Facade
static Collection
defaultAliases()

Get the application default aliases.

from  Facade
static Application|null
getFacadeApplication()

Get the application instance behind the facade.

from  Facade
static void
setFacadeApplication(Application|null $app)

Set the application instance.

from  Facade
static mixed
__callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

from  Facade
static CallbackEvent
call(string|callable $callback, array $parameters = [])

No description

static Event
command(string $command, array $parameters = [])

No description

static CallbackEvent
job(object|string $job, string|null $queue = null, string|null $connection = null)

No description

static Event
exec(string $command, array $parameters = [])

No description

static void
group(Closure $events)

No description

static string
compileArrayInput(string|int $key, array $value)

No description

static bool
serverShouldRun(Event $event, DateTimeInterface $time)

No description

static Collection
dueEvents(Application $app)

No description

static Event[]
events()

No description

static Schedule
useCache(string $store)

No description

static void
macro(string $name, object|callable $macro)

No description

static void
mixin(object $mixin, bool $replace = true)

No description

static bool
hasMacro(string $name)

No description

static void
flushMacros()

No description

static mixed
macroCall(string $method, array $parameters)

No description

withoutOverlapping(int $expiresAt = 1440)

No description

static void
mergeAttributes(Event $event)

No description

user(string $user)

No description

environments(array|mixed $environments)

No description

onOneServer()

No description

runInBackground()

No description

when(Closure|bool $callback)

No description

skip(Closure|bool $callback)

No description

name(string $description)

No description

description(string $description)

No description

cron(string $expression)

No description

between(string $startTime, string $endTime)

No description

unlessBetween(string $startTime, string $endTime)

No description

everySecond()

No description

everyTwoSeconds()

No description

everyFiveSeconds()

No description

everyTenSeconds()

No description

everyFifteenSeconds()

No description

everyTwentySeconds()

No description

everyThirtySeconds()

No description

everyMinute()

No description

everyTwoMinutes()

No description

everyThreeMinutes()

No description

everyFourMinutes()

No description

everyFiveMinutes()

No description

everyTenMinutes()

No description

everyFifteenMinutes()

No description

everyThirtyMinutes()

No description

hourly()

No description

hourlyAt(array|string|int $offset)

No description

everyOddHour(array|string|int $offset)

No description

everyTwoHours(array|string|int $offset)

No description

everyThreeHours(array|string|int $offset)

No description

everyFourHours(array|string|int $offset)

No description

everySixHours(array|string|int $offset)

No description

daily()

No description

at(string $time)

No description

dailyAt(string $time)

No description

twiceDaily(int $first = 1, int $second = 13)

No description

twiceDailyAt(int $first = 1, int $second = 13, int $offset)

No description

weekdays()

No description

weekends()

No description

mondays()

No description

tuesdays()

No description

wednesdays()

No description

thursdays()

No description

fridays()

No description

saturdays()

No description

sundays()

No description

weekly()

No description

weeklyOn(array|mixed $dayOfWeek, string $time = '0:0')

No description

monthly()

No description

monthlyOn(int $dayOfMonth = 1, string $time = '0:0')

No description

twiceMonthly(int $first = 1, int $second = 16, string $time = '0:0')

No description

lastDayOfMonth(string $time = '0:0')

No description

quarterly()

No description

quarterlyOn(int $dayOfQuarter = 1, string $time = '0:0')

No description

yearly()

No description

yearlyOn(int $month = 1, int|string $dayOfMonth = 1, string $time = '0:0')

No description

days(array|mixed $days)

No description

timezone(DateTimeZone|string $timezone)

No description

Details

static void resolved(Closure $callback)

Run a Closure when the facade has been resolved.

Parameters

Closure $callback

Return Value

void

static MockInterface spy()

Convert the facade into a Mockery spy.

Return Value

MockInterface

static MockInterface partialMock()

Initiate a partial mock on the facade.

Return Value

MockInterface

static Expectation shouldReceive()

Initiate a mock expectation on the facade.

Return Value

Expectation

static Expectation expects()

Initiate a mock expectation on the facade.

Return Value

Expectation

static protected MockInterface createFreshMockInstance()

Create a fresh mock instance for the given class.

Return Value

MockInterface

static protected MockInterface createMock()

Create a fresh mock instance for the given class.

Return Value

MockInterface

static protected bool isMock()

Determines whether a mock is set as the instance of the facade.

Return Value

bool

static protected string|null getMockableClass()

Get the mockable class for the bound instance.

Return Value

string|null

static void swap(mixed $instance)

Hotswap the underlying instance behind the facade.

Parameters

mixed $instance

Return Value

void

static bool isFake()

Determines whether a "fake" has been set as the facade instance.

Return Value

bool

static mixed getFacadeRoot()

Get the root object behind the facade.

Return Value

mixed

static protected string getFacadeAccessor()

Get the registered name of the component.

Return Value

string

static protected mixed resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

Parameters

string $name

Return Value

mixed

static void clearResolvedInstance(string $name)

Clear a resolved facade instance.

Parameters

string $name

Return Value

void

static void clearResolvedInstances()

Clear all of the resolved instances.

Return Value

void

static Collection defaultAliases()

Get the application default aliases.

Return Value

Collection

static Application|null getFacadeApplication()

Get the application instance behind the facade.

Return Value

Application|null

static void setFacadeApplication(Application|null $app)

Set the application instance.

Parameters

Application|null $app

Return Value

void

static mixed __callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

Parameters

string $method
array $args

Return Value

mixed

Exceptions

RuntimeException

static CallbackEvent call(string|callable $callback, array $parameters = [])

No description

Parameters

string|callable $callback
array $parameters

Return Value

CallbackEvent

static Event command(string $command, array $parameters = [])

No description

Parameters

string $command
array $parameters

Return Value

Event

static CallbackEvent job(object|string $job, string|null $queue = null, string|null $connection = null)

No description

Parameters

object|string $job
string|null $queue
string|null $connection

Return Value

CallbackEvent

static Event exec(string $command, array $parameters = [])

No description

Parameters

string $command
array $parameters

Return Value

Event

static void group(Closure $events)

No description

Parameters

Closure $events

Return Value

void

static string compileArrayInput(string|int $key, array $value)

No description

Parameters

string|int $key
array $value

Return Value

string

static bool serverShouldRun(Event $event, DateTimeInterface $time)

No description

Parameters

Event $event
DateTimeInterface $time

Return Value

bool

static Collection dueEvents(Application $app)

No description

Parameters

Application $app

Return Value

Collection

static Event[] events()

No description

Return Value

Event[]

static Schedule useCache(string $store)

No description

Parameters

string $store

Return Value

Schedule

static void macro(string $name, object|callable $macro)

No description

Parameters

string $name
object|callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

No description

Parameters

object $mixin
bool $replace

Return Value

void

static bool hasMacro(string $name)

No description

Parameters

string $name

Return Value

bool

static void flushMacros()

No description

Return Value

void

static mixed macroCall(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

static PendingEventAttributes withoutOverlapping(int $expiresAt = 1440)

No description

Parameters

int $expiresAt

Return Value

PendingEventAttributes

static void mergeAttributes(Event $event)

No description

Parameters

Event $event

Return Value

void

static PendingEventAttributes user(string $user)

No description

Parameters

string $user

Return Value

PendingEventAttributes

static PendingEventAttributes environments(array|mixed $environments)

No description

Parameters

array|mixed $environments

Return Value

PendingEventAttributes

static PendingEventAttributes evenInMaintenanceMode()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes onOneServer()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes runInBackground()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes when(Closure|bool $callback)

No description

Parameters

Closure|bool $callback

Return Value

PendingEventAttributes

static PendingEventAttributes skip(Closure|bool $callback)

No description

Parameters

Closure|bool $callback

Return Value

PendingEventAttributes

static PendingEventAttributes name(string $description)

No description

Parameters

string $description

Return Value

PendingEventAttributes

static PendingEventAttributes description(string $description)

No description

Parameters

string $description

Return Value

PendingEventAttributes

static PendingEventAttributes cron(string $expression)

No description

Parameters

string $expression

Return Value

PendingEventAttributes

static PendingEventAttributes between(string $startTime, string $endTime)

No description

Parameters

string $startTime
string $endTime

Return Value

PendingEventAttributes

static PendingEventAttributes unlessBetween(string $startTime, string $endTime)

No description

Parameters

string $startTime
string $endTime

Return Value

PendingEventAttributes

static PendingEventAttributes everySecond()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyTwoSeconds()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyFiveSeconds()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyTenSeconds()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyFifteenSeconds()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyTwentySeconds()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyThirtySeconds()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyMinute()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyTwoMinutes()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyThreeMinutes()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyFourMinutes()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyFiveMinutes()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyTenMinutes()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyFifteenMinutes()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes everyThirtyMinutes()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes hourly()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes hourlyAt(array|string|int $offset)

No description

Parameters

array|string|int $offset

Return Value

PendingEventAttributes

static PendingEventAttributes everyOddHour(array|string|int $offset)

No description

Parameters

array|string|int $offset

Return Value

PendingEventAttributes

static PendingEventAttributes everyTwoHours(array|string|int $offset)

No description

Parameters

array|string|int $offset

Return Value

PendingEventAttributes

static PendingEventAttributes everyThreeHours(array|string|int $offset)

No description

Parameters

array|string|int $offset

Return Value

PendingEventAttributes

static PendingEventAttributes everyFourHours(array|string|int $offset)

No description

Parameters

array|string|int $offset

Return Value

PendingEventAttributes

static PendingEventAttributes everySixHours(array|string|int $offset)

No description

Parameters

array|string|int $offset

Return Value

PendingEventAttributes

static PendingEventAttributes daily()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes at(string $time)

No description

Parameters

string $time

Return Value

PendingEventAttributes

static PendingEventAttributes dailyAt(string $time)

No description

Parameters

string $time

Return Value

PendingEventAttributes

static PendingEventAttributes twiceDaily(int $first = 1, int $second = 13)

No description

Parameters

int $first
int $second

Return Value

PendingEventAttributes

static PendingEventAttributes twiceDailyAt(int $first = 1, int $second = 13, int $offset)

No description

Parameters

int $first
int $second
int $offset

Return Value

PendingEventAttributes

static PendingEventAttributes weekdays()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes weekends()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes mondays()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes tuesdays()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes wednesdays()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes thursdays()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes fridays()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes saturdays()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes sundays()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes weekly()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes weeklyOn(array|mixed $dayOfWeek, string $time = '0:0')

No description

Parameters

array|mixed $dayOfWeek
string $time

Return Value

PendingEventAttributes

static PendingEventAttributes monthly()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes monthlyOn(int $dayOfMonth = 1, string $time = '0:0')

No description

Parameters

int $dayOfMonth
string $time

Return Value

PendingEventAttributes

static PendingEventAttributes twiceMonthly(int $first = 1, int $second = 16, string $time = '0:0')

No description

Parameters

int $first
int $second
string $time

Return Value

PendingEventAttributes

static PendingEventAttributes lastDayOfMonth(string $time = '0:0')

No description

Parameters

string $time

Return Value

PendingEventAttributes

static PendingEventAttributes quarterly()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes quarterlyOn(int $dayOfQuarter = 1, string $time = '0:0')

No description

Parameters

int $dayOfQuarter
string $time

Return Value

PendingEventAttributes

static PendingEventAttributes yearly()

No description

Return Value

PendingEventAttributes

static PendingEventAttributes yearlyOn(int $month = 1, int|string $dayOfMonth = 1, string $time = '0:0')

No description

Parameters

int $month
int|string $dayOfMonth
string $time

Return Value

PendingEventAttributes

static PendingEventAttributes days(array|mixed $days)

No description

Parameters

array|mixed $days

Return Value

PendingEventAttributes

static PendingEventAttributes timezone(DateTimeZone|string $timezone)

No description

Parameters

DateTimeZone|string $timezone

Return Value

PendingEventAttributes