platform/api/laravel/Queue/Console/ListFailedCommand.yaml

103 lines
2.2 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: ListFailedCommand
class_comment: null
dependencies:
- name: Command
type: class
source: Illuminate\Console\Command
- name: Arr
type: class
source: Illuminate\Support\Arr
- name: AsCommand
type: class
source: Symfony\Component\Console\Attribute\AsCommand
properties:
- name: name
visibility: protected
comment: '# * The console command name.
# *
# * @var string'
- name: description
visibility: protected
comment: '# * The console command description.
# *
# * @var string'
- name: headers
visibility: protected
comment: '# * The table headers for the command.
# *
# * @var string[]'
methods:
- name: handle
visibility: public
parameters: []
comment: "# * The console command name.\n# *\n# * @var string\n# */\n# protected\
\ $name = 'queue:failed';\n# \n# /**\n# * The console command description.\n#\
\ *\n# * @var string\n# */\n# protected $description = 'List all of the failed\
\ queue jobs';\n# \n# /**\n# * The table headers for the command.\n# *\n# * @var\
\ string[]\n# */\n# protected $headers = ['ID', 'Connection', 'Queue', 'Class',\
\ 'Failed At'];\n# \n# /**\n# * Execute the console command.\n# *\n# * @return\
\ void"
- name: getFailedJobs
visibility: protected
parameters: []
comment: '# * Compile the failed jobs into a displayable format.
# *
# * @return array'
- name: parseFailedJob
visibility: protected
parameters:
- name: failed
comment: '# * Parse the failed job row.
# *
# * @param array $failed
# * @return array'
- name: extractJobName
visibility: private
parameters:
- name: payload
comment: '# * Extract the failed job name from payload.
# *
# * @param string $payload
# * @return string|null'
- name: matchJobName
visibility: protected
parameters:
- name: payload
comment: '# * Match the job name from the payload.
# *
# * @param array $payload
# * @return string|null'
- name: displayFailedJobs
visibility: protected
parameters:
- name: jobs
comment: '# * Display the failed jobs in the console.
# *
# * @param array $jobs
# * @return void'
traits:
- Illuminate\Console\Command
- Illuminate\Support\Arr
- Symfony\Component\Console\Attribute\AsCommand
interfaces: []