BookIdentifier
in package
Table of Contents
Properties
- $autoDetect : bool
- $scheme : string|null
- $value : mixed
Methods
- __construct() : mixed
- __toString() : string
- getScheme() : string|null
- getValue() : string|null
- toArray() : array<string|int, mixed>
- isDoi() : bool
- isIsbn() : bool
- isUuid() : bool
- parseIsbn() : string|null
- parseScheme() : string
Properties
$autoDetect
protected
bool
$autoDetect
= true
$scheme
protected
string|null
$scheme
= null
$value
protected
mixed
$value
= null
Methods
__construct()
public
__construct([mixed $value = null ][, string|null $scheme = null ][, bool $autoDetect = true ]) : mixed
Parameters
- $value : mixed = null
- $scheme : string|null = null
- $autoDetect : bool = true
-
Try to auto detect scheme, even if provided (default:
true)
__toString()
public
__toString() : string
Return values
stringgetScheme()
public
getScheme() : string|null
Return values
string|nullgetValue()
public
getValue() : string|null
Return values
string|nulltoArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>isDoi()
private
isDoi() : bool
Return values
boolisIsbn()
private
isIsbn() : bool
Return values
boolisUuid()
private
isUuid() : bool
Return values
boolparseIsbn()
private
parseIsbn() : string|null
Return values
string|nullparseScheme()
private
parseScheme([string|null $scheme = null ]) : string
Parameters
- $scheme : string|null = null