Created BaseUniqueObjectFromUser

This commit is contained in:
Pierre
2018-04-21 20:01:20 +02:00
parent 94e2a659b5
commit e849b84172
2 changed files with 33 additions and 22 deletions

View File

@ -0,0 +1,32 @@
<?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;
}
}