1
|
|
|
<?php namespace H4ad\Scheduler\Facades; |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* Esse arquivo faz parte do Scheduler, |
5
|
|
|
* uma biblioteca para auxiliar com agendamentos. |
6
|
|
|
* |
7
|
|
|
* @license MIT |
8
|
|
|
* @package H4ad\Scheduler |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
use Illuminate\Support\Facades\Facade; |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @method static void init(Closure $boot) |
15
|
|
|
* @method static $this avoid(array $model_ids) |
16
|
|
|
* @method static boolean hasConflict($start_at, $end_at) |
17
|
|
|
* @method static $this whereBetween($start_at, $end_at) |
18
|
|
|
* @method static $this byModel() |
19
|
|
|
* @method static $this setModelType(string $model_type) |
20
|
|
|
* @method static string getModelType() |
21
|
|
|
* @method static array availableToday(int $duration, Carbon $openingTime = null) |
22
|
|
|
* @method static array availableOn(Carbon $today, int $durationMinutes, Carbon $openingTime = null) |
23
|
|
|
* @method static boolean isShouldntAdd(Carbon $opening, Carbon $closing, Carbon $start, Carbon $end) |
24
|
|
|
* @method static array validateSchedule($start_at, $end_at = null, int $status = null) |
25
|
|
|
* @method static \Carbon\Carbon parseToCarbon($date, $reference = null) |
26
|
|
|
* @method static \H4ad\Scheduler\Models\Schedule|null parseToSchedule($value) |
27
|
|
|
* @method static $this newInstance() |
28
|
|
|
* |
29
|
|
|
* @see \H4ad\Scheduler\Scheduler |
30
|
|
|
*/ |
31
|
|
|
class Scheduler extends Facade |
32
|
|
|
{ |
33
|
|
|
/** |
34
|
|
|
* Get the registered name of the component. |
35
|
|
|
* |
36
|
|
|
* @return string |
37
|
|
|
*/ |
38
|
|
|
protected static function getFacadeAccessor() |
39
|
|
|
{ |
40
|
|
|
return static::$app['scheduler']->newInstance(); |
41
|
|
|
} |
42
|
|
|
} |