/**
* Returns the id of the object type with the given name.
*
- * @param string $objectType
- * @return int
* @throws SystemException
*/
- public function getObjectTypeID($objectType)
+ public function getObjectTypeID(string $objectType): int
{
if (!isset($this->availableObjectTypes[$objectType])) {
throw new SystemException("unknown object type '" . $objectType . "'");
/**
* Returns the the object type with the given name.
*
- * @param string $objectType
- * @return ObjectType
* @throws SystemException
*/
- public function getObjectType($objectType)
+ public function getObjectType(string $objectType): ObjectType
{
if (!isset($this->availableObjectTypes[$objectType])) {
throw new SystemException("unknown object type '" . $objectType . "'");
/**
* Returns the search index manager object.
- *
- * @return ISearchIndexManager
*/
- protected function getSearchIndexManager()
+ protected function getSearchIndexManager(): ISearchIndexManager
{
if ($this->searchIndexManager === null) {
$className = '';
$username,
$languageID = null,
$metaData = ''
- ) {
+ ): void {
// strip html; remove whitespace from beginning and end of the message
$message = StringUtil::trim(StringUtil::stripHTML($message));
/**
* @inheritDoc
*/
- public function delete($objectType, array $objectIDs)
+ public function delete($objectType, array $objectIDs): void
{
$this->getSearchIndexManager()->delete($objectType, $objectIDs);
}
/**
* @inheritDoc
*/
- public function reset($objectType)
+ public function reset($objectType): void
{
$this->getSearchIndexManager()->reset($objectType);
}
/**
* @inheritDoc
*/
- public function createSearchIndices()
+ public function createSearchIndices(): void
{
$this->getSearchIndexManager()->createSearchIndices();
}
/**
* @inheritDoc
*/
- public function beginBulkOperation()
+ public function beginBulkOperation(): void
{
$this->getSearchIndexManager()->beginBulkOperation();
}
/**
* @inheritDoc
*/
- public function commitBulkOperation()
+ public function commitBulkOperation(): void
{
$this->getSearchIndexManager()->commitBulkOperation();
}
* Returns the database table name for the object type's search index.
*
* @param mixed $objectType
- * @return string
*/
- public static function getTableName($objectType)
+ public static function getTableName(string $objectType): string
{
if (\is_string($objectType)) {
$objectType = self::getInstance()->getObjectType($objectType);