\BaconQrCode\CommonCharacterSetEci

Encapsulates a Character Set ECI, according to "Extended Channel Interpretations" 5.3.1.1 of ISO 18004.

Summary

Methods
Properties
Constants
__construct()
change()
get()
getConstList()
__toString()
getCharacterSetECIByValue()
getCharacterSetECIByName()
No public properties found
__default
CP437
ISO8859_1
ISO8859_2
ISO8859_3
ISO8859_4
ISO8859_5
ISO8859_6
ISO8859_7
ISO8859_8
ISO8859_9
ISO8859_10
ISO8859_11
ISO8859_12
ISO8859_13
ISO8859_14
ISO8859_15
ISO8859_16
SJIS
CP1250
CP1251
CP1252
CP1256
UNICODE_BIG_UNMARKED
UTF8
ASCII
BIG5
GB18030
EUC_KR
No protected methods found
$value
$constants
$strict
$nameToEci
$additionalValues
N/A
No private methods found
No private properties found
N/A

Constants

__default

__default = null

Default value.

CP437

CP437 = 0

ISO8859_1

ISO8859_1 = 1

ISO8859_2

ISO8859_2 = 4

ISO8859_3

ISO8859_3 = 5

ISO8859_4

ISO8859_4 = 6

ISO8859_5

ISO8859_5 = 7

ISO8859_6

ISO8859_6 = 8

ISO8859_7

ISO8859_7 = 9

ISO8859_8

ISO8859_8 = 10

ISO8859_9

ISO8859_9 = 11

ISO8859_10

ISO8859_10 = 12

ISO8859_11

ISO8859_11 = 13

ISO8859_12

ISO8859_12 = 14

ISO8859_13

ISO8859_13 = 15

ISO8859_14

ISO8859_14 = 16

ISO8859_15

ISO8859_15 = 17

ISO8859_16

ISO8859_16 = 18

SJIS

SJIS = 20

CP1250

CP1250 = 21

CP1251

CP1251 = 22

CP1252

CP1252 = 23

CP1256

CP1256 = 24

UNICODE_BIG_UNMARKED

UNICODE_BIG_UNMARKED = 25

UTF8

UTF8 = 26

ASCII

ASCII = 27

BIG5

BIG5 = 28

GB18030

GB18030 = 29

EUC_KR

EUC_KR = 30

Properties

$value

$value : mixed

Current value.

Type

mixed

$constants

$constants : array

Cache of constants.

Type

array

$strict

$strict : boolean

Whether to handle values strict or not.

Type

boolean

$nameToEci

$nameToEci : array

Map between character names and their ECI values.

Type

array

$additionalValues

$additionalValues : array

Additional possible values for character sets.

Type

array

Methods

__construct()

__construct(mixed  $initialValue = null, boolean  $strict = false) 

Creates a new enum.

Parameters

mixed $initialValue
boolean $strict

change()

change(mixed  $value) : void

Changes the value of the enum.

Parameters

mixed $value

get()

get() : mixed

Gets current value.

Returns

mixed

getConstList()

getConstList(boolean  $includeDefault = true) : array

Gets all constants (possible values) as an array.

Parameters

boolean $includeDefault

Returns

array

__toString()

__toString() : string

Gets the name of the enum.

Returns

string

getCharacterSetECIByValue()

getCharacterSetECIByValue(  $value) : \BaconQrCode\Common\CharacterSetEci|null

Gets character set ECI by value.

Parameters

$value

Returns

\BaconQrCode\Common\CharacterSetEci|null

getCharacterSetECIByName()

getCharacterSetECIByName(string  $name) : \BaconQrCode\Common\CharacterSetEci|null

Gets character set ECI by name.

Parameters

string $name

Returns

\BaconQrCode\Common\CharacterSetEci|null