HumHub Documentation (unofficial)

Barcode
in package
implements BarcodeExtension

FinalYes
Tags
experimental

This class is experimental and does not fall under our BC promise

Table of Contents

Interfaces

BarcodeExtension
An extension is the only way to add new functionality to Faker.

Properties

$numberExtension  : NumberExtension

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

Methods

ean13()

Get a random EAN13 barcode.

public ean13() : string
Return values
string

ean8()

Get a random EAN8 barcode.

public ean8() : string
Return values
string

isbn10()

Get a random ISBN-10 code

public isbn10() : string
Return values
string

isbn13()

Get a random ISBN-13 code

public isbn13() : string
Return values
string

ean()

private ean([int $length = 13 ]) : string
Parameters
$length : int = 13
Return values
string

        
On this page

Search results