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