Documentation

Book
in package
implements JsonSerializable

Class Book

Represents a book in the library

Table of Contents

Interfaces

JsonSerializable

Properties

$amountOfBooks  : int
Amount Of Books
$author  : string
Book author
$id  : int
Book id
$isbn  : ISBN
Book ISBN
$section  : Section
Book section
$title  : string
Book title

Methods

getAmountOfBooks()  : int
Gets the Amount Of Books
getAuthor()  : string
Gets the book author
getId()  : int
Gets the book ID
getIsbn()  : ISBN
Gets the book ISBN
getSection()  : Section
Gets the book section
getTitle()  : string
Gets the book title
jsonSerialize()  : array<string|int, mixed>
setAmountOfBooks()  : self
Sets the Amount Of Books
setAuthor()  : self
Sets the book author
setId()  : self
Sets the book ID
setIsbn()  : self
Sets the book ISBN
setSection()  : self
Sets the book section
setTitle()  : self
Sets the book title

Properties

$amountOfBooks

Amount Of Books

private int $amountOfBooks

$author

Book author

private string $author

$id

Book id

private int $id

$title

Book title

private string $title

Methods

getAmountOfBooks()

Gets the Amount Of Books

public getAmountOfBooks() : int
Return values
int

getAuthor()

Gets the book author

public getAuthor() : string
Return values
string

getId()

Gets the book ID

public getId() : int
Return values
int

getIsbn()

Gets the book ISBN

public getIsbn() : ISBN
Return values
ISBN

getTitle()

Gets the book title

public getTitle() : string
Return values
string

jsonSerialize()

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

setAmountOfBooks()

Sets the Amount Of Books

public setAmountOfBooks(int $amountOfBooks) : self
Parameters
$amountOfBooks : int

Amount Of Books

Return values
self

setAuthor()

Sets the book author

public setAuthor(string $author) : self
Parameters
$author : string

Book author

Return values
self

setId()

Sets the book ID

public setId(int $id) : self
Parameters
$id : int

Book ID

Return values
self

setIsbn()

Sets the book ISBN

public setIsbn(ISBN $isbn) : self
Parameters
$isbn : ISBN

Book ISBN

Return values
self

setSection()

Sets the book section

public setSection(Section $section) : self
Parameters
$section : Section

Book section

Return values
self

setTitle()

Sets the book title

public setTitle(string $title) : self
Parameters
$title : string

Book title

Return values
self

        
On this page

Search results