Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
heyjorgedev committed Jul 16, 2024
1 parent 55ace97 commit 09326cf
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions src/QStashQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class QStashQueue extends Queue implements QueueContract

Check failure on line 8 in src/QStashQueue.php

View workflow job for this annotation

GitHub Actions / phpstan

Referencing prefixed Rector class: RectorPrefix202407\Illuminate\Contracts\Queue\Queue.
{
public function __construct() {}
public function __construct(protected readonly string $defaultQueueName = 'default') {}

public function size($queue = null)
{
Expand All @@ -16,17 +16,30 @@ public function size($queue = null)

public function push($job, $data = '', $queue = null)
{
// TODO: Implement push() method.
$this->enqueueUsing(
$job,
$this->createPayload($job, $queue ?: $this->defaultQueueName, $data),
$queue,
null,
function ($payload, $queue) {
// TODO: Implement
}
);
}

public function pushRaw($payload, $queue = null, array $options = [])
{
// TODO: Implement pushRaw() method.
}
public function pushRaw($payload, $queue = null, array $options = []) {}

public function later($delay, $job, $data = '', $queue = null)
{
// TODO: Implement later() method.
$this->enqueueUsing(
$job,
$this->createPayload($job, $queue ?: $this->defaultQueueName, $data),
$queue,
$delay,
function ($payload, $queue) {
// TODO: Implement
}
);
}

public function pop($queue = null)
Expand Down

0 comments on commit 09326cf

Please sign in to comment.