Barcode
in package
implements
BarcodeExtension
FinalYes
Tags
Table of Contents
Interfaces
- BarcodeExtension
- An extension is the only way to add new functionality to Faker.
Properties
Methods
- __construct() : mixed
- ean13() : string
- Get a random EAN13 barcode.
- ean8() : string
- Get a random EAN8 barcode.
- isbn10() : string
- Get a random ISBN-10 code
- isbn13() : string
- Get a random ISBN-13 code
- ean() : string
Properties
$numberExtension
private
NumberExtension
$numberExtension
Methods
__construct()
public
__construct([NumberExtension $numberExtension = null ]) : mixed
Parameters
- $numberExtension : NumberExtension = null
ean13()
Get a random EAN13 barcode.
public
ean13() : string
Return values
stringean8()
Get a random EAN8 barcode.
public
ean8() : string
Return values
stringisbn10()
Get a random ISBN-10 code
public
isbn10() : string
Return values
stringisbn13()
Get a random ISBN-13 code
public
isbn13() : string
Return values
stringean()
private
ean([int $length = 13 ]) : string
Parameters
- $length : int = 13