@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface EntityResolver |
| 6 | 6 | { |
| 7 | - /** |
|
| 8 | - * Resolve the entity for the given ID. |
|
| 9 | - * |
|
| 10 | - * @param string $type |
|
| 11 | - * @param mixed $id |
|
| 12 | - * @return mixed |
|
| 13 | - */ |
|
| 14 | - public function resolve($type, $id); |
|
| 7 | + /** |
|
| 8 | + * Resolve the entity for the given ID. |
|
| 9 | + * |
|
| 10 | + * @param string $type |
|
| 11 | + * @param mixed $id |
|
| 12 | + * @return mixed |
|
| 13 | + */ |
|
| 14 | + public function resolve($type, $id); |
|
| 15 | 15 | } |
@@ -10,96 +10,96 @@ |
||
| 10 | 10 | |
| 11 | 11 | interface Queue |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Get the size of the queue. |
|
| 15 | - * |
|
| 16 | - * @param string $queue |
|
| 17 | - * @return int |
|
| 18 | - */ |
|
| 19 | - public function size($queue = null); |
|
| 13 | + /** |
|
| 14 | + * Get the size of the queue. |
|
| 15 | + * |
|
| 16 | + * @param string $queue |
|
| 17 | + * @return int |
|
| 18 | + */ |
|
| 19 | + public function size($queue = null); |
|
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * Push a new job onto the queue. |
|
| 23 | - * |
|
| 24 | - * @param string $job |
|
| 25 | - * @param mixed $data |
|
| 26 | - * @param string $queue |
|
| 27 | - * @return mixed |
|
| 28 | - */ |
|
| 29 | - public function push($job, $data = '', $queue = null); |
|
| 21 | + /** |
|
| 22 | + * Push a new job onto the queue. |
|
| 23 | + * |
|
| 24 | + * @param string $job |
|
| 25 | + * @param mixed $data |
|
| 26 | + * @param string $queue |
|
| 27 | + * @return mixed |
|
| 28 | + */ |
|
| 29 | + public function push($job, $data = '', $queue = null); |
|
| 30 | 30 | |
| 31 | - /** |
|
| 32 | - * Push a new job onto the queue. |
|
| 33 | - * |
|
| 34 | - * @param string $queue |
|
| 35 | - * @param string $job |
|
| 36 | - * @param mixed $data |
|
| 37 | - * @return mixed |
|
| 38 | - */ |
|
| 39 | - public function pushOn($queue, $job, $data = ''); |
|
| 31 | + /** |
|
| 32 | + * Push a new job onto the queue. |
|
| 33 | + * |
|
| 34 | + * @param string $queue |
|
| 35 | + * @param string $job |
|
| 36 | + * @param mixed $data |
|
| 37 | + * @return mixed |
|
| 38 | + */ |
|
| 39 | + public function pushOn($queue, $job, $data = ''); |
|
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * Push a raw payload onto the queue. |
|
| 43 | - * |
|
| 44 | - * @param string $payload |
|
| 45 | - * @param string $queue |
|
| 46 | - * @param array $options |
|
| 47 | - * @return mixed |
|
| 48 | - */ |
|
| 49 | - public function pushRaw($payload, $queue = null, array $options = []); |
|
| 41 | + /** |
|
| 42 | + * Push a raw payload onto the queue. |
|
| 43 | + * |
|
| 44 | + * @param string $payload |
|
| 45 | + * @param string $queue |
|
| 46 | + * @param array $options |
|
| 47 | + * @return mixed |
|
| 48 | + */ |
|
| 49 | + public function pushRaw($payload, $queue = null, array $options = []); |
|
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * Push a new job onto the queue after a delay. |
|
| 53 | - * |
|
| 54 | - * @param \DateTime|int $delay |
|
| 55 | - * @param string $job |
|
| 56 | - * @param mixed $data |
|
| 57 | - * @param string $queue |
|
| 58 | - * @return mixed |
|
| 59 | - */ |
|
| 60 | - public function later($delay, $job, $data = '', $queue = null); |
|
| 51 | + /** |
|
| 52 | + * Push a new job onto the queue after a delay. |
|
| 53 | + * |
|
| 54 | + * @param \DateTime|int $delay |
|
| 55 | + * @param string $job |
|
| 56 | + * @param mixed $data |
|
| 57 | + * @param string $queue |
|
| 58 | + * @return mixed |
|
| 59 | + */ |
|
| 60 | + public function later($delay, $job, $data = '', $queue = null); |
|
| 61 | 61 | |
| 62 | - /** |
|
| 63 | - * Push a new job onto the queue after a delay. |
|
| 64 | - * |
|
| 65 | - * @param string $queue |
|
| 66 | - * @param \DateTime|int $delay |
|
| 67 | - * @param string $job |
|
| 68 | - * @param mixed $data |
|
| 69 | - * @return mixed |
|
| 70 | - */ |
|
| 71 | - public function laterOn($queue, $delay, $job, $data = ''); |
|
| 62 | + /** |
|
| 63 | + * Push a new job onto the queue after a delay. |
|
| 64 | + * |
|
| 65 | + * @param string $queue |
|
| 66 | + * @param \DateTime|int $delay |
|
| 67 | + * @param string $job |
|
| 68 | + * @param mixed $data |
|
| 69 | + * @return mixed |
|
| 70 | + */ |
|
| 71 | + public function laterOn($queue, $delay, $job, $data = ''); |
|
| 72 | 72 | |
| 73 | - /** |
|
| 74 | - * Push an array of jobs onto the queue. |
|
| 75 | - * |
|
| 76 | - * @param array $jobs |
|
| 77 | - * @param mixed $data |
|
| 78 | - * @param string $queue |
|
| 79 | - * @return mixed |
|
| 80 | - */ |
|
| 81 | - public function bulk($jobs, $data = '', $queue = null); |
|
| 73 | + /** |
|
| 74 | + * Push an array of jobs onto the queue. |
|
| 75 | + * |
|
| 76 | + * @param array $jobs |
|
| 77 | + * @param mixed $data |
|
| 78 | + * @param string $queue |
|
| 79 | + * @return mixed |
|
| 80 | + */ |
|
| 81 | + public function bulk($jobs, $data = '', $queue = null); |
|
| 82 | 82 | |
| 83 | - /** |
|
| 84 | - * Pop the next job off of the queue. |
|
| 85 | - * |
|
| 86 | - * @param string $queue |
|
| 87 | - * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue\Job|null |
|
| 88 | - */ |
|
| 89 | - public function pop($queue = null); |
|
| 83 | + /** |
|
| 84 | + * Pop the next job off of the queue. |
|
| 85 | + * |
|
| 86 | + * @param string $queue |
|
| 87 | + * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue\Job|null |
|
| 88 | + */ |
|
| 89 | + public function pop($queue = null); |
|
| 90 | 90 | |
| 91 | - /** |
|
| 92 | - * Get the connection name for the queue. |
|
| 93 | - * |
|
| 94 | - * @return string |
|
| 95 | - */ |
|
| 96 | - public function getConnectionName(); |
|
| 91 | + /** |
|
| 92 | + * Get the connection name for the queue. |
|
| 93 | + * |
|
| 94 | + * @return string |
|
| 95 | + */ |
|
| 96 | + public function getConnectionName(); |
|
| 97 | 97 | |
| 98 | - /** |
|
| 99 | - * Set the connection name for the queue. |
|
| 100 | - * |
|
| 101 | - * @param string $name |
|
| 102 | - * @return $this |
|
| 103 | - */ |
|
| 104 | - public function setConnectionName($name); |
|
| 98 | + /** |
|
| 99 | + * Set the connection name for the queue. |
|
| 100 | + * |
|
| 101 | + * @param string $name |
|
| 102 | + * @return $this |
|
| 103 | + */ |
|
| 104 | + public function setConnectionName($name); |
|
| 105 | 105 | } |
@@ -4,5 +4,5 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface ShouldQueue |
| 6 | 6 | { |
| 7 | - // |
|
| 7 | + // |
|
| 8 | 8 | } |
@@ -10,17 +10,17 @@ |
||
| 10 | 10 | |
| 11 | 11 | interface QueueableCollection |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Get the type of the entities being queued. |
|
| 15 | - * |
|
| 16 | - * @return string|null |
|
| 17 | - */ |
|
| 18 | - public function getQueueableClass(); |
|
| 13 | + /** |
|
| 14 | + * Get the type of the entities being queued. |
|
| 15 | + * |
|
| 16 | + * @return string|null |
|
| 17 | + */ |
|
| 18 | + public function getQueueableClass(); |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * Get the identifiers for all of the entities. |
|
| 22 | - * |
|
| 23 | - * @return array |
|
| 24 | - */ |
|
| 25 | - public function getQueueableIds(); |
|
| 20 | + /** |
|
| 21 | + * Get the identifiers for all of the entities. |
|
| 22 | + * |
|
| 23 | + * @return array |
|
| 24 | + */ |
|
| 25 | + public function getQueueableIds(); |
|
| 26 | 26 | } |
@@ -10,105 +10,105 @@ |
||
| 10 | 10 | |
| 11 | 11 | interface Job |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Fire the job. |
|
| 15 | - * |
|
| 16 | - * @return void |
|
| 17 | - */ |
|
| 18 | - public function fire(); |
|
| 13 | + /** |
|
| 14 | + * Fire the job. |
|
| 15 | + * |
|
| 16 | + * @return void |
|
| 17 | + */ |
|
| 18 | + public function fire(); |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * Release the job back into the queue. |
|
| 22 | - * |
|
| 23 | - * @param int $delay |
|
| 24 | - * @return mixed |
|
| 25 | - */ |
|
| 26 | - public function release($delay = 0); |
|
| 20 | + /** |
|
| 21 | + * Release the job back into the queue. |
|
| 22 | + * |
|
| 23 | + * @param int $delay |
|
| 24 | + * @return mixed |
|
| 25 | + */ |
|
| 26 | + public function release($delay = 0); |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * Delete the job from the queue. |
|
| 30 | - * |
|
| 31 | - * @return void |
|
| 32 | - */ |
|
| 33 | - public function delete(); |
|
| 28 | + /** |
|
| 29 | + * Delete the job from the queue. |
|
| 30 | + * |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 33 | + public function delete(); |
|
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * Determine if the job has been deleted. |
|
| 37 | - * |
|
| 38 | - * @return bool |
|
| 39 | - */ |
|
| 40 | - public function isDeleted(); |
|
| 35 | + /** |
|
| 36 | + * Determine if the job has been deleted. |
|
| 37 | + * |
|
| 38 | + * @return bool |
|
| 39 | + */ |
|
| 40 | + public function isDeleted(); |
|
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * Determine if the job has been deleted or released. |
|
| 44 | - * |
|
| 45 | - * @return bool |
|
| 46 | - */ |
|
| 47 | - public function isDeletedOrReleased(); |
|
| 42 | + /** |
|
| 43 | + * Determine if the job has been deleted or released. |
|
| 44 | + * |
|
| 45 | + * @return bool |
|
| 46 | + */ |
|
| 47 | + public function isDeletedOrReleased(); |
|
| 48 | 48 | |
| 49 | - /** |
|
| 50 | - * Get the number of times the job has been attempted. |
|
| 51 | - * |
|
| 52 | - * @return int |
|
| 53 | - */ |
|
| 54 | - public function attempts(); |
|
| 49 | + /** |
|
| 50 | + * Get the number of times the job has been attempted. |
|
| 51 | + * |
|
| 52 | + * @return int |
|
| 53 | + */ |
|
| 54 | + public function attempts(); |
|
| 55 | 55 | |
| 56 | - /** |
|
| 57 | - * Process an exception that caused the job to fail. |
|
| 58 | - * |
|
| 59 | - * @param \Throwable $e |
|
| 60 | - * @return void |
|
| 61 | - */ |
|
| 62 | - public function failed($e); |
|
| 56 | + /** |
|
| 57 | + * Process an exception that caused the job to fail. |
|
| 58 | + * |
|
| 59 | + * @param \Throwable $e |
|
| 60 | + * @return void |
|
| 61 | + */ |
|
| 62 | + public function failed($e); |
|
| 63 | 63 | |
| 64 | - /** |
|
| 65 | - * The number of times to attempt a job. |
|
| 66 | - * |
|
| 67 | - * @return int|null |
|
| 68 | - */ |
|
| 69 | - public function maxTries(); |
|
| 64 | + /** |
|
| 65 | + * The number of times to attempt a job. |
|
| 66 | + * |
|
| 67 | + * @return int|null |
|
| 68 | + */ |
|
| 69 | + public function maxTries(); |
|
| 70 | 70 | |
| 71 | - /** |
|
| 72 | - * The number of seconds the job can run. |
|
| 73 | - * |
|
| 74 | - * @return int|null |
|
| 75 | - */ |
|
| 76 | - public function timeout(); |
|
| 71 | + /** |
|
| 72 | + * The number of seconds the job can run. |
|
| 73 | + * |
|
| 74 | + * @return int|null |
|
| 75 | + */ |
|
| 76 | + public function timeout(); |
|
| 77 | 77 | |
| 78 | - /** |
|
| 79 | - * Get the name of the queued job class. |
|
| 80 | - * |
|
| 81 | - * @return string |
|
| 82 | - */ |
|
| 83 | - public function getName(); |
|
| 78 | + /** |
|
| 79 | + * Get the name of the queued job class. |
|
| 80 | + * |
|
| 81 | + * @return string |
|
| 82 | + */ |
|
| 83 | + public function getName(); |
|
| 84 | 84 | |
| 85 | - /** |
|
| 86 | - * Get the resolved name of the queued job class. |
|
| 87 | - * |
|
| 88 | - * Resolves the name of "wrapped" jobs such as class-based handlers. |
|
| 89 | - * |
|
| 90 | - * @return string |
|
| 91 | - */ |
|
| 92 | - public function resolveName(); |
|
| 85 | + /** |
|
| 86 | + * Get the resolved name of the queued job class. |
|
| 87 | + * |
|
| 88 | + * Resolves the name of "wrapped" jobs such as class-based handlers. |
|
| 89 | + * |
|
| 90 | + * @return string |
|
| 91 | + */ |
|
| 92 | + public function resolveName(); |
|
| 93 | 93 | |
| 94 | - /** |
|
| 95 | - * Get the name of the connection the job belongs to. |
|
| 96 | - * |
|
| 97 | - * @return string |
|
| 98 | - */ |
|
| 99 | - public function getConnectionName(); |
|
| 94 | + /** |
|
| 95 | + * Get the name of the connection the job belongs to. |
|
| 96 | + * |
|
| 97 | + * @return string |
|
| 98 | + */ |
|
| 99 | + public function getConnectionName(); |
|
| 100 | 100 | |
| 101 | - /** |
|
| 102 | - * Get the name of the queue the job belongs to. |
|
| 103 | - * |
|
| 104 | - * @return string |
|
| 105 | - */ |
|
| 106 | - public function getQueue(); |
|
| 101 | + /** |
|
| 102 | + * Get the name of the queue the job belongs to. |
|
| 103 | + * |
|
| 104 | + * @return string |
|
| 105 | + */ |
|
| 106 | + public function getQueue(); |
|
| 107 | 107 | |
| 108 | - /** |
|
| 109 | - * Get the raw body string for the job. |
|
| 110 | - * |
|
| 111 | - * @return string |
|
| 112 | - */ |
|
| 113 | - public function getRawBody(); |
|
| 108 | + /** |
|
| 109 | + * Get the raw body string for the job. |
|
| 110 | + * |
|
| 111 | + * @return string |
|
| 112 | + */ |
|
| 113 | + public function getRawBody(); |
|
| 114 | 114 | } |
@@ -10,11 +10,11 @@ |
||
| 10 | 10 | |
| 11 | 11 | interface Factory |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Resolve a queue connection instance. |
|
| 15 | - * |
|
| 16 | - * @param string $name |
|
| 17 | - * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue\Queue |
|
| 18 | - */ |
|
| 19 | - public function connection($name = null); |
|
| 13 | + /** |
|
| 14 | + * Resolve a queue connection instance. |
|
| 15 | + * |
|
| 16 | + * @param string $name |
|
| 17 | + * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue\Queue |
|
| 18 | + */ |
|
| 19 | + public function connection($name = null); |
|
| 20 | 20 | } |
@@ -10,10 +10,10 @@ |
||
| 10 | 10 | |
| 11 | 11 | interface QueueableEntity |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Get the queueable identity for the entity. |
|
| 15 | - * |
|
| 16 | - * @return mixed |
|
| 17 | - */ |
|
| 18 | - public function getQueueableId(); |
|
| 13 | + /** |
|
| 14 | + * Get the queueable identity for the entity. |
|
| 15 | + * |
|
| 16 | + * @return mixed |
|
| 17 | + */ |
|
| 18 | + public function getQueueableId(); |
|
| 19 | 19 | } |
@@ -10,34 +10,34 @@ |
||
| 10 | 10 | |
| 11 | 11 | interface Kernel |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Bootstrap the application for HTTP requests. |
|
| 15 | - * |
|
| 16 | - * @return void |
|
| 17 | - */ |
|
| 18 | - public function bootstrap(); |
|
| 13 | + /** |
|
| 14 | + * Bootstrap the application for HTTP requests. |
|
| 15 | + * |
|
| 16 | + * @return void |
|
| 17 | + */ |
|
| 18 | + public function bootstrap(); |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * Handle an incoming HTTP request. |
|
| 22 | - * |
|
| 23 | - * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
|
| 24 | - * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response |
|
| 25 | - */ |
|
| 26 | - public function handle($request); |
|
| 20 | + /** |
|
| 21 | + * Handle an incoming HTTP request. |
|
| 22 | + * |
|
| 23 | + * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
|
| 24 | + * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response |
|
| 25 | + */ |
|
| 26 | + public function handle($request); |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * Perform any final actions for the request lifecycle. |
|
| 30 | - * |
|
| 31 | - * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
|
| 32 | - * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response $response |
|
| 33 | - * @return void |
|
| 34 | - */ |
|
| 35 | - public function terminate($request, $response); |
|
| 28 | + /** |
|
| 29 | + * Perform any final actions for the request lifecycle. |
|
| 30 | + * |
|
| 31 | + * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
|
| 32 | + * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response $response |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 35 | + public function terminate($request, $response); |
|
| 36 | 36 | |
| 37 | - /** |
|
| 38 | - * Get the Laravel application instance. |
|
| 39 | - * |
|
| 40 | - * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Foundation\Application |
|
| 41 | - */ |
|
| 42 | - public function getApplication(); |
|
| 37 | + /** |
|
| 38 | + * Get the Laravel application instance. |
|
| 39 | + * |
|
| 40 | + * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Foundation\Application |
|
| 41 | + */ |
|
| 42 | + public function getApplication(); |
|
| 43 | 43 | } |
@@ -10,17 +10,17 @@ |
||
| 10 | 10 | |
| 11 | 11 | interface UrlRoutable |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Get the value of the model's route key. |
|
| 15 | - * |
|
| 16 | - * @return mixed |
|
| 17 | - */ |
|
| 18 | - public function getRouteKey(); |
|
| 13 | + /** |
|
| 14 | + * Get the value of the model's route key. |
|
| 15 | + * |
|
| 16 | + * @return mixed |
|
| 17 | + */ |
|
| 18 | + public function getRouteKey(); |
|
| 19 | 19 | |
| 20 | - /** |
|
| 21 | - * Get the route key for the model. |
|
| 22 | - * |
|
| 23 | - * @return string |
|
| 24 | - */ |
|
| 25 | - public function getRouteKeyName(); |
|
| 20 | + /** |
|
| 21 | + * Get the route key for the model. |
|
| 22 | + * |
|
| 23 | + * @return string |
|
| 24 | + */ |
|
| 25 | + public function getRouteKeyName(); |
|
| 26 | 26 | } |