The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Faker::Plugin::PaymentCardNumber

ABSTRACT

Payment Card Number Plugin for Faker

SYNOPSIS

  package main;

  use Faker;
  use Faker::Plugin::PaymentCardNumber;

  my $f = Faker->new;
  my $p = Faker::Plugin::PaymentCardNumber->new(faker => $f);

  my $plugin = $p;

DESCRIPTION

This package provides methods for generating fake payment card number data.

INHERITS

This package inherits behaviors from:

Data::Object::Plugin

LIBRARIES

This package uses type constraints from:

Types::Standard

ATTRIBUTES

This package has the following attributes:

faker

  faker(InstanceOf["Faker"])

This attribute is read-only, accepts (InstanceOf["Faker"]) values, and is required.

METHODS

This package implements the following methods:

execute

  execute() : Str

The execute method returns a random fake payment card number.

execute example #1
  # given: synopsis

  $p->execute;

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

ACKNOWLEDGEMENTS

Parts of this library were inspired by the following implementations:

PHP Faker

Ruby Faker

Python Faker

JS Faker

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues