// SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue
// SPDX-License-Identifier: BSD-3-Clause
* Manages all author-related data
* Used by {@see Item::get_author()} and {@see SimplePie::get_authors()}
* This class can be overloaded with {@see SimplePie::set_author_class()}
* Constructor, used to input the data
public function __construct(
public function __toString()
// There is no $this->data here
return md5(serialize($this));
public function get_name()
if ($this->name !== null) {
public function get_link()
if ($this->link !== null) {
public function get_email()
if ($this->email !== null) {
class_alias('SimplePie\Author', 'SimplePie_Author');