platform/api/laravel/Auth/Access/AuthorizationException.yaml
2024-09-02 10:44:11 -07:00

106 lines
2.2 KiB
YAML

name: AuthorizationException
class_comment: null
dependencies:
- name: Exception
type: class
source: Exception
- name: Throwable
type: class
source: Throwable
properties:
- name: response
visibility: protected
comment: '# * The response from the gate.
# *
# * @var \Illuminate\Auth\Access\Response'
- name: status
visibility: protected
comment: '# * The HTTP response status code.
# *
# * @var int|null'
methods:
- name: __construct
visibility: public
parameters:
- name: message
default: 'null'
- name: code
default: 'null'
- name: previous
default: 'null'
comment: "# * The response from the gate.\n# *\n# * @var \\Illuminate\\Auth\\Access\\\
Response\n# */\n# protected $response;\n# \n# /**\n# * The HTTP response status\
\ code.\n# *\n# * @var int|null\n# */\n# protected $status;\n# \n# /**\n# * Create\
\ a new authorization exception instance.\n# *\n# * @param string|null $message\n\
# * @param mixed $code\n# * @param \\Throwable|null $previous\n# * @return\
\ void"
- name: response
visibility: public
parameters: []
comment: '# * Get the response from the gate.
# *
# * @return \Illuminate\Auth\Access\Response'
- name: setResponse
visibility: public
parameters:
- name: response
comment: '# * Set the response from the gate.
# *
# * @param \Illuminate\Auth\Access\Response $response
# * @return $this'
- name: withStatus
visibility: public
parameters:
- name: status
comment: '# * Set the HTTP response status code.
# *
# * @param int|null $status
# * @return $this'
- name: asNotFound
visibility: public
parameters: []
comment: '# * Set the HTTP response status code to 404.
# *
# * @return $this'
- name: hasStatus
visibility: public
parameters: []
comment: '# * Determine if the HTTP status code has been set.
# *
# * @return bool'
- name: status
visibility: public
parameters: []
comment: '# * Get the HTTP status code.
# *
# * @return int|null'
- name: toResponse
visibility: public
parameters: []
comment: '# * Create a deny response object from this exception.
# *
# * @return \Illuminate\Auth\Access\Response'
traits:
- Exception
- Throwable
interfaces: []