platform/api/symfony/Component/HttpKernel/Attribute/WithHttpStatus.yaml

33 lines
634 B
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
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: []