@@ -28,27 +28,27 @@ discard block |
||
28 | 28 | trait SchedulerModelTrait |
29 | 29 | { |
30 | 30 | /** |
31 | - * Define a one-to-many relationship. |
|
32 | - * |
|
33 | - * @param string $related |
|
34 | - * @param string $foreignKey |
|
35 | - * @param string $localKey |
|
36 | - * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
37 | - */ |
|
38 | - abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
|
31 | + * Define a one-to-many relationship. |
|
32 | + * |
|
33 | + * @param string $related |
|
34 | + * @param string $foreignKey |
|
35 | + * @param string $localKey |
|
36 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
37 | + */ |
|
38 | + abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
|
39 | 39 | |
40 | 40 | /** |
41 | - * Get the value of the model's primary key. |
|
42 | - * |
|
43 | - * @return mixed |
|
44 | - */ |
|
41 | + * Get the value of the model's primary key. |
|
42 | + * |
|
43 | + * @return mixed |
|
44 | + */ |
|
45 | 45 | abstract public function getKey(); |
46 | 46 | |
47 | 47 | /** |
48 | - * Retorna apenas os horários que possuem o mesmo [model_type] do [parent] dessa [trait]. |
|
49 | - * |
|
50 | - * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
51 | - */ |
|
48 | + * Retorna apenas os horários que possuem o mesmo [model_type] do [parent] dessa [trait]. |
|
49 | + * |
|
50 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
51 | + */ |
|
52 | 52 | public function schedules() |
53 | 53 | { |
54 | 54 | return $this->hasMany(Config::get('scheduler.schedules_table'), 'model_id'); |
@@ -95,8 +95,8 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @param int $duration Serve para facilitar na hora de buscar horários livres |
97 | 97 | * que precisem ter uma certa duração. |
98 | - * @param \Carbon\Carbon|null $openingTime Serve como referencia para buscar horários livres. |
|
99 | - * Se for nulo, ele busca a referencia da config. |
|
98 | + * @param \Carbon\Carbon|null $openingTime Serve como referencia para buscar horários livres. |
|
99 | + * Se for nulo, ele busca a referencia da config. |
|
100 | 100 | * @return array |
101 | 101 | */ |
102 | 102 | public function availableToday($duration = 0, $openingTime = null) |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | * @param string|\Carbon\Carbon $date Data para o qual ele irá fazer a busca. |
111 | 111 | * @param int $duration Serve para facilitar na hora de buscar horários livres |
112 | 112 | * que precisem ter uma certa duração. |
113 | - * @param \Carbon\Carbon|null $openingTime Serve como referencia para buscar horários livres. |
|
114 | - * Se for nulo, ele busca a referencia da config. |
|
113 | + * @param \Carbon\Carbon|null $openingTime Serve como referencia para buscar horários livres. |
|
114 | + * Se for nulo, ele busca a referencia da config. |
|
115 | 115 | * @return array |
116 | 116 | */ |
117 | 117 | public function availableOn($date, $duration = 0, $openingTime = null) |
@@ -11,27 +11,27 @@ discard block |
||
11 | 11 | interface SchedulerModelInterface |
12 | 12 | { |
13 | 13 | /** |
14 | - * Define a one-to-many relationship. |
|
15 | - * |
|
16 | - * @param string $related |
|
17 | - * @param string $foreignKey |
|
18 | - * @param string $localKey |
|
19 | - * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
20 | - */ |
|
21 | - abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
|
14 | + * Define a one-to-many relationship. |
|
15 | + * |
|
16 | + * @param string $related |
|
17 | + * @param string $foreignKey |
|
18 | + * @param string $localKey |
|
19 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
20 | + */ |
|
21 | + abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
|
22 | 22 | |
23 | 23 | /** |
24 | - * Get the value of the model's primary key. |
|
25 | - * |
|
26 | - * @return mixed |
|
27 | - */ |
|
24 | + * Get the value of the model's primary key. |
|
25 | + * |
|
26 | + * @return mixed |
|
27 | + */ |
|
28 | 28 | abstract public function getKey(); |
29 | 29 | |
30 | 30 | /** |
31 | - * Retorna apenas os horários que possuem o mesmo [model_type] do [parent] dessa [trait]. |
|
32 | - * |
|
33 | - * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
34 | - */ |
|
31 | + * Retorna apenas os horários que possuem o mesmo [model_type] do [parent] dessa [trait]. |
|
32 | + * |
|
33 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
34 | + */ |
|
35 | 35 | public function schedules(); |
36 | 36 | |
37 | 37 | /** |
@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | * |
55 | 55 | * @param int $duration Serve para facilitar na hora de buscar horários livres |
56 | 56 | * que precisem ter uma certa duração. |
57 | - * @param \Carbon\Carbon|null $openingTime Serve como referencia para buscar horários livres. |
|
58 | - * Se for nulo, ele busca a referencia da config. |
|
57 | + * @param \Carbon\Carbon|null $openingTime Serve como referencia para buscar horários livres. |
|
58 | + * Se for nulo, ele busca a referencia da config. |
|
59 | 59 | * @return array |
60 | 60 | */ |
61 | 61 | public function availableToday($duration = 0, $openingTime = null); |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | * @param string|\Carbon\Carbon $date Data para o qual ele irá fazer a busca. |
67 | 67 | * @param int $duration Serve para facilitar na hora de buscar horários livres |
68 | 68 | * que precisem ter uma certa duração. |
69 | - * @param \Carbon\Carbon|null $openingTime Serve como referencia para buscar horários livres. |
|
70 | - * Se for nulo, ele busca a referencia da config. |
|
69 | + * @param \Carbon\Carbon|null $openingTime Serve como referencia para buscar horários livres. |
|
70 | + * Se for nulo, ele busca a referencia da config. |
|
71 | 71 | * @return array |
72 | 72 | */ |
73 | 73 | public function availableOn($date, $duration = 0, $openingTime = null); |