芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/mod/forum/classes/local/entities/author.php
. /** * Author class. * * @package mod_forum * @copyright 2019 Ryan Wyllie
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace mod_forum\local\entities; defined('MOODLE_INTERNAL') || die(); /** * Author class. * * @copyright 2019 Ryan Wyllie
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class author { /** @var int $id ID */ private $id; /** @var int $pictureitemid Picture item id */ private $pictureitemid; /** @var string $firstname First name */ private $firstname; /** @var string $lastname Last name */ private $lastname; /** @var string $fullname Full name */ private $fullname; /** @var string $email Email */ private $email; /** @var string $middlename Middle name */ private $middlename; /** @var string $firstnamephonetic Phonetic spelling of first name */ private $firstnamephonetic; /** @var string $lastnamephonetic Phonetic spelling of last name */ private $lastnamephonetic; /** @var string $alternatename Altername name */ private $alternatename; /** @var string $imagealt Image alt */ private $imagealt; /** * Constructor. * * @param int $id ID * @param int $pictureitemid Picture item id * @param string $firstname First name * @param string $lastname Last name * @param string $fullname Full name * @param string $email Email * @param string|null $middlename Middle name * @param string|null $firstnamephonetic Phonetic spelling of first name * @param string|null $lastnamephonetic Phonetic spelling of last name * @param string|null $alternatename Altername name * @param string|null $imagealt Image alt */ public function __construct( int $id, int $pictureitemid, string $firstname, string $lastname, string $fullname, string $email, string $middlename = null, string $firstnamephonetic = null, string $lastnamephonetic = null, string $alternatename = null, string $imagealt = null ) { $this->id = $id; $this->pictureitemid = $pictureitemid; $this->firstname = $firstname; $this->lastname = $lastname; $this->fullname = $fullname; $this->email = $email; $this->middlename = $middlename; $this->firstnamephonetic = $firstnamephonetic; $this->lastnamephonetic = $lastnamephonetic; $this->alternatename = $alternatename; $this->imagealt = $imagealt; } /** * Return the id. * * @return int */ public function get_id() : int { return $this->id; } /** * Return the picture item id. * * @return int */ public function get_picture_item_id() : int { return $this->pictureitemid; } /** * Return the first name. * * @return string */ public function get_first_name() : string { return $this->firstname; } /** * Return the last name. * * @return string */ public function get_last_name() : string { return $this->lastname; } /** * Return the full name. * * @return string */ public function get_full_name() : string { return $this->fullname; } /** * Return the email. * * @return string */ public function get_email() : string { return $this->email; } /** * Return the middle name. * * @return string|null */ public function get_middle_name() : ?string { return $this->middlename; } /** * Return the first name phonetic. * * @return string|null */ public function get_first_name_phonetic() : ?string { return $this->firstnamephonetic; } /** * Return the last name phonetic. * * @return string|null */ public function get_last_name_phonetic() : ?string { return $this->lastnamephonetic; } /** * Return the alternate name. * * @return string|null */ public function get_alternate_name() : ?string { return $this->alternatename; } /** * Return the image alt. * * @return string|null */ public function get_image_alt() : ?string { return $this->imagealt; } }