Documentation

ISBN
in package
implements JsonSerializable

FinalYes

Class ISBN

Represents the ISBN code of books in the application. This class is a Value Object and is immutable.

Table of Contents

Interfaces

JsonSerializable

Properties

$value  : string
The value of the ISBN

Methods

equals()  : bool
Checks equality with another ISBN object
getValue()  : string
Gets the ISBN value
jsonSerialize()  : array<string|int, mixed>
setValue()  : self
Sets the ISBN value

Properties

$value

The value of the ISBN

private string $value

Methods

equals()

Checks equality with another ISBN object

public equals(ISBN $isbn) : bool
Parameters
$isbn : ISBN

The ISBN object to compare with

Return values
bool

Returns true if the ISBNs are equal.

getValue()

Gets the ISBN value

public getValue() : string
Return values
string

The ISBN value

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

setValue()

Sets the ISBN value

public setValue(string $value) : self
Parameters
$value : string

The new ISBN value

Return values
self

        
On this page

Search results