Faker/Plugin/PaymentCardAmericanExpress.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.0% 24 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Faker/Plugin/LoremWord.pm ↑ Summary Faker/Plugin/PaymentCardDiscover.pm »
1 package Faker::Plugin::PaymentCardAmericanExpress;
2  
3 3 ▶use 5.018;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use Venus::Class 'base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 base 'Faker::Plugin';
11  
12 # VERSION
13  
14 3 our $VERSION = '1.19';
15  
16 # METHODS
17  
18 8 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod documented
19 8 my ($self, $data) = @_;
20  
21 8 return $self->process_markers(
22 $self->faker->random->select(data_for_payment_card_american_express()),
23 'numbers',
24 );
25 }
26  
27 8 ▶sub data_for_payment_card_american_express {
Subroutine data_for_payment_card_american_express: called CC=1 SCAR=0.0
Pod undocumented
28 8 state $payment_card_american_express = [
29 '34############',
30 '37############',
31 ]
32 }
33  
34 3 1;
35  
36  
37  
38 =head1 NAME
39  
40 Faker::Plugin::PaymentCardAmericanExpress - Payment Card American Express
41  
42 =cut
43  
44 =head1 ABSTRACT
45  
46 Payment Card American Express for Faker
47  
48 =cut
49  
50 =head1 VERSION
51  
52 1.19
53  
54 =cut
55  
56 =head1 SYNOPSIS
57  
58 package main;
59  
60 use Faker::Plugin::PaymentCardAmericanExpress;
61  
62 my $plugin = Faker::Plugin::PaymentCardAmericanExpress->new;
63  
64 # bless(..., "Faker::Plugin::PaymentCardAmericanExpress")
65  
66 =cut
67  
68 =head1 DESCRIPTION
69  
70 This package provides methods for generating fake data for payment card american express.
71  
72 =encoding utf8
73  
74 =cut
75  
76 =head1 INHERITS
77  
78 This package inherits behaviors from:
79  
80 L<Faker::Plugin>
81  
82 =cut
83  
84 =head1 METHODS
85  
86 This package provides the following methods:
87  
88 =cut
89  
90 =head2 execute
91  
92 execute(HashRef $data) (Str)
93  
94 The execute method returns a returns a random fake payment card american express.
95  
96 I<Since C<1.10>>
97  
98 =over 4
99  
100 =item execute example 1
101  
102 package main;
103  
104 use Faker::Plugin::PaymentCardAmericanExpress;
105  
106 my $plugin = Faker::Plugin::PaymentCardAmericanExpress->new;
107  
108 # bless(..., "Faker::Plugin::PaymentCardAmericanExpress")
109  
110 # my $result = $plugin->execute;
111  
112 # 34140844684550;
113  
114 # my $result = $plugin->execute;
115  
116 # 37945443908982;
117  
118 # my $result = $plugin->execute;
119  
120 # 34370225828820;
121  
122 =back
123  
124 =cut
125  
126 =head2 new
127  
128 new(HashRef $data) (Plugin)
129  
130 The new method returns a new instance of the class.
131  
132 I<Since C<1.10>>
133  
134 =over 4
135  
136 =item new example 1
137  
138 package main;
139  
140 use Faker::Plugin::PaymentCardAmericanExpress;
141  
142 my $plugin = Faker::Plugin::PaymentCardAmericanExpress->new;
143  
144 # bless(..., "Faker::Plugin::PaymentCardAmericanExpress")
145  
146 =back
147  
148 =cut
149  
150 =head1 AUTHORS
151  
152 Awncorp, C<awncorp@cpan.org>
153  
154 =cut
155  
156 =head1 LICENSE
157  
158 Copyright (C) 2000, Al Newkirk.
159  
160 This program is free software, you can redistribute it and/or modify it under
161 the terms of the Apache license version 2.0.
162  
163 =cut
« Faker/Plugin/LoremWord.pm ↑ Summary Faker/Plugin/PaymentCardDiscover.pm »