1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<?php
namespace MediaWiki\Extension\AbuseFilter\Filter;
/**
* (Mutable) value object that holds information about the last edit to a filter.
*/
class LastEditInfo {
/** @var int */
private $userID;
/** @var string */
private $userName;
/** @var string */
private $timestamp;
/**
* @param int $userID
* @param string $userName
* @param string $timestamp
*/
public function __construct( int $userID, string $userName, string $timestamp ) {
$this->userID = $userID;
$this->userName = $userName;
$this->timestamp = $timestamp;
}
/**
* @return int
*/
public function getUserID(): int {
return $this->userID;
}
/**
* @param int $id
*/
public function setUserID( int $id ): void {
$this->userID = $id;
}
/**
* @return string
*/
public function getUserName(): string {
return $this->userName;
}
/**
* @param string $name
*/
public function setUserName( string $name ): void {
$this->userName = $name;
}
/**
* @return string
*/
public function getTimestamp(): string {
return $this->timestamp;
}
/**
* @param string $timestamp
*/
public function setTimestamp( string $timestamp ): void {
$this->timestamp = $timestamp;
}
}
|