3 namespace wcf\data\search
;
6 * All search result objects should implement this interface.
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\Data\Search
13 interface ISearchResultObject
16 * Returns author's user profile.
18 * @return \wcf\data\user\UserProfile
20 public function getUserProfile();
23 * Returns the subject of this object.
27 public function getSubject();
30 * Returns the creation time.
34 public function getTime();
37 * Returns the link to this object.
39 * @param string $query search query
42 public function getLink($query = '');
45 * Returns the object type name.
49 public function getObjectTypeName();
52 * Returns the message text.
56 public function getFormattedMessage();
59 * Returns the title of object's container. Returns empty string if there
64 public function getContainerTitle();
67 * Returns the link to object's container. Returns empty string if there
72 public function getContainerLink();