XG Proyect

Notes
in package

Notes Class

Tags
category

Classes

author

XG Proyect Team

license

http://www.xgproyect.org XG Proyect

link
http://www.xgproyect.org
version
3.1.0

Table of Contents

$notes  : array<string|int, mixed>
$notes_count  : int
__construct()  : void
Constructor
getNoteById()  : array<string|int, mixed>
Get note by ID
getNotes()  : array<string|int, mixed>
Get all the notes
getNotesCount()  : int
Return the notes count
hasNotes()  : bool
Count the amount of notes
createNewNotesEntity()  : NotesEntity
Create a new instance of NotesEntity
setNotesCount()  : void
Set the notes count
setUp()  : void
Set up the list of notes

Properties

$notes

private array<string|int, mixed> $notes = []

$notes_count

private int $notes_count = 0

Methods

__construct()

Constructor

public __construct(array<string|int, mixed> $notes) : void
Parameters
$notes : array<string|int, mixed>

Notes

Return values
void

getNoteById()

Get note by ID

public getNoteById(int $note_id) : array<string|int, mixed>
Parameters
$note_id : int
Return values
array<string|int, mixed>

getNotes()

Get all the notes

public getNotes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNotesCount()

Return the notes count

public getNotesCount() : int
Return values
int

hasNotes()

Count the amount of notes

public hasNotes() : bool
Return values
bool

createNewNotesEntity()

Create a new instance of NotesEntity

private createNewNotesEntity(array<string|int, mixed> $note) : NotesEntity
Parameters
$note : array<string|int, mixed>

Note

Return values
NotesEntity

setNotesCount()

Set the notes count

private setNotesCount() : void
Return values
void

setUp()

Set up the list of notes

private setUp(array<string|int, mixed> $notes) : void
Parameters
$notes : array<string|int, mixed>

Notes

Return values
void

Search results