Researches
in package
researches Class
Tags
Table of Contents
- $_current_user_id : int
- $_research : array<string|int, mixed>
- __construct() : void
- Constructor
- getCurrentResearch() : array<string|int, mixed>
- Get current research
- getResearch() : array<string|int, mixed>
- Get all the research
- createNewResearchEntity() : ResearchEntity
- Create a new instance of ResearchEntity
- getUserId() : int
- setUp() : void
- Set up the list of researches
- setUserId() : mixed
Properties
$_current_user_id
private
int
$_current_user_id
= 0
$_research
private
array<string|int, mixed>
$_research
= []
Methods
__construct()
Constructor
public
__construct(array<string|int, mixed> $research, int $current_user_id) : void
Parameters
- $research : array<string|int, mixed>
-
Research
- $current_user_id : int
-
Current User ID
Return values
void —getCurrentResearch()
Get current research
public
getCurrentResearch() : array<string|int, mixed>
Return values
array<string|int, mixed> —getResearch()
Get all the research
public
getResearch() : array<string|int, mixed>
Return values
array<string|int, mixed> —createNewResearchEntity()
Create a new instance of ResearchEntity
private
createNewResearchEntity(array<string|int, mixed> $research) : ResearchEntity
Parameters
- $research : array<string|int, mixed>
-
Research
Return values
ResearchEntity —getUserId()
private
getUserId() : int
Return values
int —setUp()
Set up the list of researches
private
setUp(array<string|int, mixed> $researches) : void
Parameters
- $researches : array<string|int, mixed>
-
Researches
Return values
void —setUserId()
private
setUserId(int $user_id) : mixed
Parameters
- $user_id : int
-
User Id