имхо так представляю
class Loger
{
private $actionType = false;
private $userId = false;
private $subjectId = false;
public function __construct($userId, $actionType, $subjectId) {
$this->userId = $userId;
$this->actionType = $actionType;
$this->subjectId = $subjectId;
}
public function add() {
// mysql query add
// insert into (`userid`, `subid`, `act`) values (/* $userId, $actionType, $subjectId */);
}
}