platform/api/symfony/Component/HttpKernel/Attribute/WithHttpStatus.yaml
2024-09-02 10:44:11 -07:00

32 lines
634 B
YAML

name: WithHttpStatus
class_comment: null
dependencies: []
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: statusCode
- name: headers
default: '[]'
comment: '# * Defines the HTTP status code applied to an exception.
# *
# * @author Dejan Angelov <angelovdejan@protonmail.com>
# */
# #[\Attribute(\Attribute::TARGET_CLASS)]
# class WithHttpStatus
# {
# /**
# * @param int $statusCode The HTTP status code to use
# * @param array<string, string> $headers The HTTP headers to add to the response'
traits: []
interfaces: []