| 1 | 20 | ▶ | use v5.36; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 20 | ▶ | use feature 'class'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 20 | ▶ | no warnings 'experimental::class'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 20 | class Azure::SDK::Core::Context { | |||||||||
| 6 | 20 | field $request_id :param :reader = undef; | |||||||||
| 7 | 20 | field $options :param :reader = {}; | |||||||||
| 8 | 20 | field $attempt :reader = 0; | |||||||||
| 9 | |||||||||||
| 10 | 116 | ▶ | method options_for ($key, $default = undef) { | ||||||||
|
Subroutine
options_for: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 11 | 116 | ▶ | return exists $options->{$key} ? $options->{$key} : $default; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 119 | ▶ | method set_request_id ($value) { | ||||||||
|
Subroutine
set_request_id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 15 | 119 | $request_id = $value; | |||||||||
| 16 | 119 | return $self; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 173 | ▶ | method begin_attempt () { | ||||||||
|
Subroutine
begin_attempt: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 20 | 173 | $attempt++; | |||||||||
| 21 | 173 | return $attempt; | |||||||||
| 22 | } | ||||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 20 | 1; | |||||||||
| 26 | |||||||||||
| 27 | __END__ | ||||||||||