| 1 | package CSAF::Type::FileHash; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | extends 'CSAF::Type::Base'; | |
| 10 | |||
| 11 | 1 | has algorithm => (is => 'rw', required => 1); | |
| 12 | 1 | has value => (is => 'rw', required => 1); | |
| 13 | |||
| 14 | 0 | ▶ | sub TO_CSAF { |
|
Subroutine
TO_CSAF: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 15 | |||
| 16 | 0 | my $self = shift; | |
| 17 | |||
| 18 | 0 | my $output = {algorithm => $self->algorithm, value => $self->value}; | |
| 19 | |||
| 20 | 0 | return $output; | |
| 21 | |||
| 22 | } | ||
| 23 | |||
| 24 | 1 | 1; | |
| 25 | |||
| 26 | __END__ | ||