gitea/src/19eb68d7-1e19-4d14-a0ef-70d...
Robot 12042ffd4d
update 2024-04-07 13:20:18
2024-04-07 13:20:22 +02:00
..
README.md update 2023-10-10 10:16:07 2023-10-10 11:39:23 +02:00
code.php update 2024-01-27 2024-01-27 09:09:52 +02:00
code.power update 2024-01-27 2024-01-27 09:09:52 +02:00
settings.json update 2024-04-07 13:20:18 2024-04-07 13:20:22 +02:00

README.md

██████╗  ██████╗ ██╗    ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗
██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝
██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗
██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║
╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝

final class Response (Details)

namespace: VDM\Joomla\Gitea\Utilities

@startuml
class Response << (F,LightGreen) >> #RoyalBlue {
  + get(JoomlaResponse $response, int $expectedCode = 200, ...) : mixed
  + get_(JoomlaResponse $response, array $validate = [200 => null]) : mixed
  # body(JoomlaResponse $response, mixed $default = null) : mixed
  # error(JoomlaResponse $response) : string
}

note right of Response::get
  Process the response and decode it.

  since: 3.2.0
  return: mixed
  
  arguments:
    JoomlaResponse $response
    int $expectedCode = 200
    mixed $default = null
end note

note right of Response::get_
  Process the response and decode it. (when we have multiple success codes)

  since: 3.2.0
  return: mixed
end note

note right of Response::body
  Return the body from the response

  since: 3.2.0
  return: mixed
end note

note right of Response::error
  Get the error message from the return object

  since: 3.2.0
  return: string
end note
 
@enduml

     ██╗ ██████╗██████╗
     ██║██╔════╝██╔══██╗
     ██║██║     ██████╔╝
██   ██║██║     ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
 ╚════╝  ╚═════╝╚═════╝

Build with Joomla Component Builder