| 1 | package Twilio::Jwt::Grants::PlaybackGrant; | ||||||||||||
| 2 | |||||||||||||
| 3 | 2 | ▶ | use 5.016; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | 2 | ▶ | use parent 'Twilio::Jwt::Grants::Grant'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 2 | our $VERSION = '2.001'; | |||||||||||
| 9 | |||||||||||||
| 10 | 2 | ▶ | sub get_grant_key { return 'player' } | ||||||||||
|
Subroutine
get_grant_key: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 11 | |||||||||||||
| 12 | 1 | ▶ | sub get_grant { return $_[0]{grant} } | ||||||||||
|
Subroutine
get_grant: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 13 | |||||||||||||
| 14 | 2 | ▶ | sub set_grant { | ||||||||||
|
Subroutine
set_grant: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 15 | 2 | my ($self, $grant) = @_; | |||||||||||
| 16 | 2 | $self->{grant} = $grant; | |||||||||||
| 17 | 2 | return $self; | |||||||||||
| 18 | } | ||||||||||||
| 19 | |||||||||||||
| 20 | 3 | ▶ | sub get_payload { | ||||||||||
|
Subroutine
get_payload: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||
| 21 | 3 | my ($self) = @_; | |||||||||||
| 22 | 3 | ▶ | return $self->{grant} // {}; | ||||||||||
|
Condition100%2/2
$self->{"grant"} // {}
MC/DC100%1/1
$self->{"grant"} // {}
$self->{"grant"}
Truth table100%2/2
A
A= $self->{"grant"}
| |||||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | 2 | 1; | |||||||||||
| 26 | |||||||||||||
| 27 | __END__ | ||||||||||||