mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-30 15:38:59 +00:00
32 lines
571 B
PHP
32 lines
571 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Unique object with an ID created by a user base class
|
||
|
*
|
||
|
* @author Pierre HUBERT
|
||
|
*/
|
||
|
|
||
|
class BaseUniqueObjectFromUser extends BaseUniqueObject {
|
||
|
|
||
|
//Private fields
|
||
|
private $userID = 0;
|
||
|
private $time_sent;
|
||
|
|
||
|
//Set and get user ID
|
||
|
public function set_userID(int $userID){
|
||
|
$this->userID = $userID;
|
||
|
}
|
||
|
|
||
|
public function get_userID() : int {
|
||
|
return $this->userID;
|
||
|
}
|
||
|
|
||
|
//Set and get creation time
|
||
|
public function set_time_sent(int $time_sent){
|
||
|
$this->time_sent = $time_sent;
|
||
|
}
|
||
|
|
||
|
public function get_time_sent() : int {
|
||
|
return $this->time_sent;
|
||
|
}
|
||
|
|
||
|
}
|