From: Matthias Schmidt Date: Fri, 5 Aug 2016 17:31:14 +0000 (+0200) Subject: Add @method tags for IEditableObject::create() in DBO classes X-Git-Tag: 3.0.0_Beta_1~802 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01d8af08f39b53e96f58de99d2daae82ecd9d9c4;p=GitHub%2FWoltLab%2FWCF.git Add @method tags for IEditableObject::create() in DBO classes --- diff --git a/wcfsetup/install/files/lib/data/acl/option/ACLOptionEditor.class.php b/wcfsetup/install/files/lib/data/acl/option/ACLOptionEditor.class.php index 2d245838f9..d856f948fc 100644 --- a/wcfsetup/install/files/lib/data/acl/option/ACLOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/acl/option/ACLOptionEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acl\Option * - * @method ACLOption getDecoratedObject() - * @mixin ACLOption + * @method static ACLOption create(array $parameters = []) + * @method ACLOption getDecoratedObject() + * @mixin ACLOption */ class ACLOptionEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategoryEditor.class.php b/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategoryEditor.class.php index 9d977a270c..b5ae860e52 100644 --- a/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategoryEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acl\Option\Category * - * @method ACLOptionCategory getDecoratedObject() - * @mixin ACLOptionCategory + * @method static ACLOptionCategory create(array $parameters = []) + * @method ACLOptionCategory getDecoratedObject() + * @mixin ACLOptionCategory */ class ACLOptionCategoryEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemEditor.class.php b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemEditor.class.php index 06cde771b3..f85278a592 100644 --- a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItemEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Menu\Item * - * @method ACPMenuItem getDecoratedObject() - * @mixin ACPMenuItem + * @method static ACPMenuItem create(array $parameters = []) + * @method ACPMenuItem getDecoratedObject() + * @mixin ACPMenuItem */ class ACPMenuItemEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderEditor.class.php b/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderEditor.class.php index 7c451c3d54..42a2f0fc57 100644 --- a/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Search\Provider * - * @method ACPSearchProvider getDecoratedObject() - * @mixin ACPSearchProvider + * @method static ACPSearchProvider create(array $parameters = []) + * @method ACPSearchProvider getDecoratedObject() + * @mixin ACPSearchProvider */ class ACPSearchProviderEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php b/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php index f8e2b5f940..16214c9ac3 100644 --- a/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php @@ -23,12 +23,14 @@ class ACPSessionEditor extends DatabaseObjectEditor { /** * @inheritDoc + * @return ACPSession */ public static function create(array $parameters = []) { if (isset($parameters['userID']) && !$parameters['userID']) { $parameters['userID'] = null; } + /** @noinspection PhpIncompatibleReturnTypeInspection */ return parent::create($parameters); } diff --git a/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLogEditor.class.php b/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLogEditor.class.php index 389dc07c45..f9ad7dc0cb 100644 --- a/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLogEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLogEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Session\Access\Log * - * @method ACPSessionAccessLog getDecoratedObject() - * @mixin ACPSessionAccessLog + * @method static ACPSessionAccessLog create(array $parameters = []) + * @method ACPSessionAccessLog getDecoratedObject() + * @mixin ACPSessionAccessLog */ class ACPSessionAccessLogEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLogEditor.class.php b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLogEditor.class.php index d429c65715..670c7490e5 100644 --- a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLogEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLogEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Session\Log * - * @method ACPSessionLog getDecoratedObject() - * @mixin ACPSessionLog + * @method static ACPSessionLog create(array $parameters = []) + * @method ACPSessionLog getDecoratedObject() + * @mixin ACPSessionLog */ class ACPSessionLogEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualEditor.class.php b/wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualEditor.class.php index 1830cb1788..0445719f6c 100644 --- a/wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/virtual/ACPSessionVirtualEditor.class.php @@ -11,8 +11,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Session\Virtual * - * @method ACPSessionVirtual getDecoratedObject() - * @mixin ACPSessionVirtual + * @method static ACPSessionVirtual create(array $parameters = []) + * @method ACPSessionVirtual getDecoratedObject() + * @mixin ACPSessionVirtual */ class ACPSessionVirtualEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/acp/template/ACPTemplateEditor.class.php b/wcfsetup/install/files/lib/data/acp/template/ACPTemplateEditor.class.php index 71838014ea..d341dfb128 100644 --- a/wcfsetup/install/files/lib/data/acp/template/ACPTemplateEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/template/ACPTemplateEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Template * - * @method ACPTemplate getDecoratedObject() - * @mixin ACPTemplate + * @method static ACPTemplate create(array $parameters = []) + * @method ACPTemplate getDecoratedObject() + * @mixin ACPTemplate */ class ACPTemplateEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/ad/AdEditor.class.php b/wcfsetup/install/files/lib/data/ad/AdEditor.class.php index 6fd770f0cd..207befe20a 100644 --- a/wcfsetup/install/files/lib/data/ad/AdEditor.class.php +++ b/wcfsetup/install/files/lib/data/ad/AdEditor.class.php @@ -15,8 +15,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Ad * - * @method Ad getDecoratedObject() - * @mixin Ad + * @method static Ad create(array $parameters = []) + * @method Ad getDecoratedObject() + * @mixin Ad */ class AdEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/application/ApplicationEditor.class.php b/wcfsetup/install/files/lib/data/application/ApplicationEditor.class.php index b4c10d95d3..36fb3642a5 100644 --- a/wcfsetup/install/files/lib/data/application/ApplicationEditor.class.php +++ b/wcfsetup/install/files/lib/data/application/ApplicationEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\ApplicationCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Application * - * @method Application getDecoratedObject() - * @mixin Application + * @method static Application create(array $parameters = []) + * @method Application getDecoratedObject() + * @mixin Application */ class ApplicationEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/article/ArticleEditor.class.php b/wcfsetup/install/files/lib/data/article/ArticleEditor.class.php index f2223c39f2..34636b9590 100644 --- a/wcfsetup/install/files/lib/data/article/ArticleEditor.class.php +++ b/wcfsetup/install/files/lib/data/article/ArticleEditor.class.php @@ -11,8 +11,9 @@ use wcf\data\DatabaseObjectEditor; * @package WoltLabSuite\Core\Data\Article * @since 3.0 * - * @method Article getDecoratedObject() - * @mixin Article + * @method static Article create(array $parameters = []) + * @method Article getDecoratedObject() + * @mixin Article */ class ArticleEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/article/content/ArticleContentEditor.class.php b/wcfsetup/install/files/lib/data/article/content/ArticleContentEditor.class.php index c0c8847633..40433e5444 100644 --- a/wcfsetup/install/files/lib/data/article/content/ArticleContentEditor.class.php +++ b/wcfsetup/install/files/lib/data/article/content/ArticleContentEditor.class.php @@ -11,8 +11,9 @@ use wcf\data\DatabaseObjectEditor; * @package WoltLabSuite\Core\Data\Article\Content * @since 3.0 * - * @method ArticleContent getDecoratedObject() - * @mixin ArticleContent + * @method static ArticleContent create(array $parameters = []) + * @method ArticleContent getDecoratedObject() + * @mixin ArticleContent */ class ArticleContentEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/attachment/AttachmentEditor.class.php b/wcfsetup/install/files/lib/data/attachment/AttachmentEditor.class.php index f5916c9414..660757c7f1 100644 --- a/wcfsetup/install/files/lib/data/attachment/AttachmentEditor.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AttachmentEditor.class.php @@ -11,9 +11,10 @@ use wcf\system\WCF; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Attachment - * - * @method Attachment getDecoratedObject() - * @mixin Attachment + * + * @method static Attachment create(array $parameters = []) + * @method Attachment getDecoratedObject() + * @mixin Attachment */ class AttachmentEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCodeEditor.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCodeEditor.class.php index 200a698eca..cee29b5d7c 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCodeEditor.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCodeEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\BBCodeCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Bbcode * - * @method BBCode getDecoratedObject() - * @mixin BBCode + * @method static BBCode create(array $parameters = []) + * @method BBCode getDecoratedObject() + * @mixin BBCode */ class BBCodeEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttributeEditor.class.php b/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttributeEditor.class.php index bf32c92ba5..0669098380 100644 --- a/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttributeEditor.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttributeEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Bbcode\Attribute * - * @method BBCodeAttribute getDecoratedObject() - * @mixin BBCodeAttribute + * @method static BBCodeAttribute create(array $parameters = []) + * @method BBCodeAttribute getDecoratedObject() + * @mixin BBCodeAttribute */ class BBCodeAttributeEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderEditor.class.php b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderEditor.class.php index 2d18083b67..ad8338b994 100644 --- a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderEditor.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProviderEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\BBCodeMediaProviderCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Bbcode\Media\Provider * - * @method BBCodeMediaProvider getDecoratedObject() - * @mixin BBCodeMediaProvider + * @method static BBCodeMediaProvider create(array $parameters = []) + * @method BBCodeMediaProvider getDecoratedObject() + * @mixin BBCodeMediaProvider */ class BBCodeMediaProviderEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/box/BoxEditor.class.php b/wcfsetup/install/files/lib/data/box/BoxEditor.class.php index 73b22c43a1..22a53ad55f 100644 --- a/wcfsetup/install/files/lib/data/box/BoxEditor.class.php +++ b/wcfsetup/install/files/lib/data/box/BoxEditor.class.php @@ -11,8 +11,9 @@ use wcf\data\DatabaseObjectEditor; * @package WoltLabSuite\Core\Data\Box * @since 3.0 * - * @method Box getDecoratedObject() - * @mixin Box + * @method static Box create(array $parameters = []) + * @method Box getDecoratedObject() + * @mixin Box */ class BoxEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/box/content/BoxContentEditor.class.php b/wcfsetup/install/files/lib/data/box/content/BoxContentEditor.class.php index 114e0342e9..2283d48135 100644 --- a/wcfsetup/install/files/lib/data/box/content/BoxContentEditor.class.php +++ b/wcfsetup/install/files/lib/data/box/content/BoxContentEditor.class.php @@ -11,8 +11,9 @@ use wcf\data\DatabaseObjectEditor; * @package WoltLabSuite\Core\Data\Box\Content * @since 3.0 * - * @method BoxContent getDecoratedObject() - * @mixin BoxContent + * @method static BoxContent create(array $parameters = []) + * @method BoxContent getDecoratedObject() + * @mixin BoxContent */ class BoxContentEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionEditor.class.php b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionEditor.class.php index 7eb6044c4b..c2f436f274 100644 --- a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionEditor.class.php +++ b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\CaptchaQuestionCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Captcha\Question * - * @method CaptchaQuestion getDecoratedObject() - * @mixin CaptchaQuestion + * @method static CaptchaQuestion create(array $parameters = []) + * @method CaptchaQuestion getDecoratedObject() + * @mixin CaptchaQuestion */ class CaptchaQuestionEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php b/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php index 0d345c26db..d40f2cc6b2 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php @@ -13,7 +13,7 @@ use wcf\system\WCF; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Category - * + * * @method Category getDecoratedObject() * @mixin Category */ @@ -107,6 +107,7 @@ class CategoryEditor extends DatabaseObjectEditor implements IEditableCachedObje /** * @inheritDoc + * @return Category */ public static function create(array $parameters = []) { // default values @@ -122,6 +123,7 @@ class CategoryEditor extends DatabaseObjectEditor implements IEditableCachedObje $parameters['additionalData'] = serialize([]); } + /** @noinspection PhpIncompatibleReturnTypeInspection */ return parent::create($parameters); } diff --git a/wcfsetup/install/files/lib/data/clipboard/action/ClipboardActionEditor.class.php b/wcfsetup/install/files/lib/data/clipboard/action/ClipboardActionEditor.class.php index 72f3052bd5..ef6d0d892e 100644 --- a/wcfsetup/install/files/lib/data/clipboard/action/ClipboardActionEditor.class.php +++ b/wcfsetup/install/files/lib/data/clipboard/action/ClipboardActionEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Clipboard\Action * - * @method ClipboardAction getDecoratedObject() - * @mixin ClipboardAction + * @method static ClipboardAction create(array $parameters = []) + * @method ClipboardAction getDecoratedObject() + * @mixin ClipboardAction */ class ClipboardActionEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/comment/CommentEditor.class.php b/wcfsetup/install/files/lib/data/comment/CommentEditor.class.php index 8821ff65e8..07c235f7fe 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentEditor.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentEditor.class.php @@ -11,8 +11,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Comment * - * @method Comment getDecoratedObject() - * @mixin Comment + * @method static Comment create(array $parameters = []) + * @method Comment getDecoratedObject() + * @mixin Comment */ class CommentEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/comment/response/CommentResponseEditor.class.php b/wcfsetup/install/files/lib/data/comment/response/CommentResponseEditor.class.php index 7ad43abc66..681220b224 100644 --- a/wcfsetup/install/files/lib/data/comment/response/CommentResponseEditor.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/CommentResponseEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Comment\Response * - * @method CommentResponse getDecoratedObject() - * @mixin CommentResponse + * @method static CommentResponse create(array $parameters = []) + * @method CommentResponse getDecoratedObject() + * @mixin CommentResponse */ class CommentResponseEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/condition/ConditionEditor.class.php b/wcfsetup/install/files/lib/data/condition/ConditionEditor.class.php index 2c546dca30..823a2c1205 100644 --- a/wcfsetup/install/files/lib/data/condition/ConditionEditor.class.php +++ b/wcfsetup/install/files/lib/data/condition/ConditionEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\ConditionCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Condition * - * @method Condition getDecoratedObject() - * @mixin Condition + * @method static Condition create(array $parameters = []) + * @method Condition getDecoratedObject() + * @mixin Condition */ class ConditionEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/core/object/CoreObjectEditor.class.php b/wcfsetup/install/files/lib/data/core/object/CoreObjectEditor.class.php index c5d9bd7e26..816a979afb 100644 --- a/wcfsetup/install/files/lib/data/core/object/CoreObjectEditor.class.php +++ b/wcfsetup/install/files/lib/data/core/object/CoreObjectEditor.class.php @@ -9,9 +9,10 @@ use wcf\data\DatabaseObjectEditor; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Core\Object - * - * @method CoreObject getDecoratedObject() - * @mixin CoreObject + * + * @method static CoreObject create(array $parameters = []) + * @method CoreObject getDecoratedObject() + * @mixin CoreObject */ class CoreObjectEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php index 77ff9e7744..82f8114721 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php @@ -27,6 +27,7 @@ class CronjobEditor extends DatabaseObjectEditor implements IEditableCachedObjec /** * @inheritDoc + * @return Cronjob */ public static function create(array $parameters = []) { $descriptions = []; @@ -48,6 +49,7 @@ class CronjobEditor extends DatabaseObjectEditor implements IEditableCachedObjec $cronjobEditor->saveDescriptions($descriptions, false); } + /** @noinspection PhpIncompatibleReturnTypeInspection */ return $cronjob; } diff --git a/wcfsetup/install/files/lib/data/cronjob/log/CronjobLogEditor.class.php b/wcfsetup/install/files/lib/data/cronjob/log/CronjobLogEditor.class.php index e3c1c13e31..cc726f3db8 100644 --- a/wcfsetup/install/files/lib/data/cronjob/log/CronjobLogEditor.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/log/CronjobLogEditor.class.php @@ -11,8 +11,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Language\Item * - * @method CronjobLog getDecoratedObject() - * @mixin CronjobLog + * @method static CronjobLog create(array $parameters = []) + * @method CronjobLog getDecoratedObject() + * @mixin CronjobLog */ class CronjobLogEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php index b6f509eaad..7929217bd4 100644 --- a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntryEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Edit\History\Entry * - * @method EditHistoryEntry getDecoratedObject() - * @mixin EditHistoryEntry + * @method static EditHistoryEntry create(array $parameters = []) + * @method EditHistoryEntry getDecoratedObject() + * @mixin EditHistoryEntry */ class EditHistoryEntryEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/event/listener/EventListenerEditor.class.php b/wcfsetup/install/files/lib/data/event/listener/EventListenerEditor.class.php index e9dbfe1b0d..bd9a88c047 100644 --- a/wcfsetup/install/files/lib/data/event/listener/EventListenerEditor.class.php +++ b/wcfsetup/install/files/lib/data/event/listener/EventListenerEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Event\Listener * - * @method EventListener getDecoratedObject() - * @mixin EventListener + * @method static EventListener create(array $parameters = []) + * @method EventListener getDecoratedObject() + * @mixin EventListener */ class EventListenerEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/label/LabelEditor.class.php b/wcfsetup/install/files/lib/data/label/LabelEditor.class.php index e9d4dea91f..12ea507e9d 100644 --- a/wcfsetup/install/files/lib/data/label/LabelEditor.class.php +++ b/wcfsetup/install/files/lib/data/label/LabelEditor.class.php @@ -13,8 +13,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Label * - * @method Label getDecoratedObject() - * @mixin Label + * @method static Label create(array $parameters = []) + * @method Label getDecoratedObject() + * @mixin Label */ class LabelEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/label/group/LabelGroupEditor.class.php b/wcfsetup/install/files/lib/data/label/group/LabelGroupEditor.class.php index 7a624a611d..764d045336 100644 --- a/wcfsetup/install/files/lib/data/label/group/LabelGroupEditor.class.php +++ b/wcfsetup/install/files/lib/data/label/group/LabelGroupEditor.class.php @@ -13,8 +13,9 @@ use wcf\system\cache\builder\LabelCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Label\Group * - * @method LabelGroup getDecoratedObject() - * @mixin LabelGroup + * @method static LabelGroup create(array $parameters = []) + * @method LabelGroup getDecoratedObject() + * @mixin LabelGroup */ class LabelGroupEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index ad8d0d601f..1f8398872f 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -25,9 +25,10 @@ use wcf\util\XML; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Language - * - * @method Language getDecoratedObject() - * @mixin Language + * + * @method static Language create(array $parameters = []) + * @method Language getDecoratedObject() + * @mixin Language */ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/language/category/LanguageCategoryEditor.class.php b/wcfsetup/install/files/lib/data/language/category/LanguageCategoryEditor.class.php index ad0b7a918b..a1c0ea0bb1 100644 --- a/wcfsetup/install/files/lib/data/language/category/LanguageCategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/category/LanguageCategoryEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Language\Category * - * @method LanguageCategory getDecoratedObject() - * @mixin LanguageCategory + * @method static LanguageCategory create(array $parameters = []) + * @method LanguageCategory getDecoratedObject() + * @mixin LanguageCategory */ class LanguageCategoryEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/language/item/LanguageItemEditor.class.php b/wcfsetup/install/files/lib/data/language/item/LanguageItemEditor.class.php index 666637669b..ee4bed632c 100644 --- a/wcfsetup/install/files/lib/data/language/item/LanguageItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/item/LanguageItemEditor.class.php @@ -9,9 +9,10 @@ use wcf\data\DatabaseObjectEditor; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Language\Item - * - * @method LanguageItem getDecoratedObject() - * @mixin LanguageItem + * + * @method static LanguageItem create(array $parameters = []) + * @method LanguageItem getDecoratedObject() + * @mixin LanguageItem */ class LanguageItemEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/like/LikeEditor.class.php b/wcfsetup/install/files/lib/data/like/LikeEditor.class.php index 2f9956c0c4..2a633c0ec1 100644 --- a/wcfsetup/install/files/lib/data/like/LikeEditor.class.php +++ b/wcfsetup/install/files/lib/data/like/LikeEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Like * - * @method Like getDecoratedObject() - * @mixin Like + * @method static Like create(array $parameters = []) + * @method Like getDecoratedObject() + * @mixin Like */ class LikeEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/like/object/LikeObjectEditor.class.php b/wcfsetup/install/files/lib/data/like/object/LikeObjectEditor.class.php index 73eaba15e0..97bc4778ca 100644 --- a/wcfsetup/install/files/lib/data/like/object/LikeObjectEditor.class.php +++ b/wcfsetup/install/files/lib/data/like/object/LikeObjectEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Like\Object * - * @method LikeObject getDecoratedObject() - * @mixin LikeObject + * @method static LikeObject create(array $parameters = []) + * @method LikeObject getDecoratedObject() + * @mixin LikeObject */ class LikeObjectEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/media/MediaEditor.class.php b/wcfsetup/install/files/lib/data/media/MediaEditor.class.php index 36e86f8695..c877c74e12 100644 --- a/wcfsetup/install/files/lib/data/media/MediaEditor.class.php +++ b/wcfsetup/install/files/lib/data/media/MediaEditor.class.php @@ -11,8 +11,9 @@ use wcf\data\DatabaseObjectEditor; * @package WoltLabSuite\Core\Data\Media * @since 3.0 * - * @method Media getDecoratedObject() - * @mixin Media + * @method static Media create(array $parameters = []) + * @method Media getDecoratedObject() + * @mixin Media */ class MediaEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/menu/MenuEditor.class.php b/wcfsetup/install/files/lib/data/menu/MenuEditor.class.php index 23c3ec0eb4..7dfb0605c3 100644 --- a/wcfsetup/install/files/lib/data/menu/MenuEditor.class.php +++ b/wcfsetup/install/files/lib/data/menu/MenuEditor.class.php @@ -26,6 +26,7 @@ class MenuEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * @inheritDoc + * @return Menu */ public static function create(array $parameters = []) { $title = ''; @@ -34,6 +35,7 @@ class MenuEditor extends DatabaseObjectEditor implements IEditableCachedObject { $parameters['title'] = ''; } + /** @var Menu $menu */ $menu = parent::create($parameters); if (is_array($title)) { diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php index 54411cda1b..e6306e667f 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php @@ -26,6 +26,7 @@ class MenuItemEditor extends DatabaseObjectEditor implements IEditableCachedObje /** * @inheritDoc + * @return MenuItem */ public static function create(array $parameters = []) { $title = ''; @@ -34,6 +35,7 @@ class MenuItemEditor extends DatabaseObjectEditor implements IEditableCachedObje $parameters['title'] = ''; } + /** @var MenuItem $menuItem */ $menuItem = parent::create($parameters); if (is_array($title)) { diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueEditor.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueEditor.class.php index e774b6e4e6..cb73575731 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueEditor.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueEditor.class.php @@ -11,8 +11,9 @@ use wcf\system\moderation\queue\ModerationQueueManager; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Moderation\Queue * - * @method ModerationQueue getDecoratedObject() - * @mixin ModerationQueue + * @method static ModerationQueue create(array $parameters = []) + * @method ModerationQueue getDecoratedObject() + * @mixin ModerationQueue */ class ModerationQueueEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/modification/log/ModificationLogEditor.class.php b/wcfsetup/install/files/lib/data/modification/log/ModificationLogEditor.class.php index 1b38772aae..dc04982774 100644 --- a/wcfsetup/install/files/lib/data/modification/log/ModificationLogEditor.class.php +++ b/wcfsetup/install/files/lib/data/modification/log/ModificationLogEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Modification\Log * - * @method ModificationLog getDecoratedObject() - * @mixin ModificationLog + * @method static ModificationLog create(array $parameters = []) + * @method ModificationLog getDecoratedObject() + * @mixin ModificationLog */ class ModificationLogEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php b/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php index 89a7393d17..46e0786a57 100644 --- a/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php +++ b/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php @@ -15,8 +15,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Notice * - * @method Notice getDecoratedObject() - * @mixin Notice + * @method static Notice create(array $parameters = []) + * @method Notice getDecoratedObject() + * @mixin Notice */ class NoticeEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php index 7bd8a3c219..9f89bf3291 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php @@ -11,8 +11,9 @@ use wcf\data\IEditableCachedObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Object\Type * - * @method ObjectType getDecoratedObject() - * @mixin ObjectType + * @method static ObjectType create(array $parameters = []) + * @method ObjectType getDecoratedObject() + * @mixin ObjectType */ class ObjectTypeEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php b/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php index e7b0dd97a5..9c9595abbf 100644 --- a/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php +++ b/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinitionEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Object\Type\Definition * - * @method ObjectTypeDefinition getDecoratedObject() - * @mixin ObjectTypeDefinition + * @method static ObjectTypeDefinition create(array $parameters = []) + * @method ObjectTypeDefinition getDecoratedObject() + * @mixin ObjectTypeDefinition */ class ObjectTypeDefinitionEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/option/OptionEditor.class.php b/wcfsetup/install/files/lib/data/option/OptionEditor.class.php index 6b94b8e14e..42ca690ecb 100644 --- a/wcfsetup/install/files/lib/data/option/OptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/option/OptionEditor.class.php @@ -16,8 +16,9 @@ use wcf\util\FileUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Option * - * @method Option getDecoratedObject() - * @mixin Option + * @method static Option create(array $parameters = []) + * @method Option getDecoratedObject() + * @mixin Option */ class OptionEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/option/category/OptionCategoryEditor.class.php b/wcfsetup/install/files/lib/data/option/category/OptionCategoryEditor.class.php index 3abc61fe4f..826de5ae01 100644 --- a/wcfsetup/install/files/lib/data/option/category/OptionCategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/option/category/OptionCategoryEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Option\Category * - * @method OptionCategory getDecoratedObject() - * @mixin OptionCategory + * @method static OptionCategory create(array $parameters = []) + * @method OptionCategory getDecoratedObject() + * @mixin OptionCategory */ class OptionCategoryEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/package/PackageEditor.class.php b/wcfsetup/install/files/lib/data/package/PackageEditor.class.php index 6114317a04..a27f1edf63 100644 --- a/wcfsetup/install/files/lib/data/package/PackageEditor.class.php +++ b/wcfsetup/install/files/lib/data/package/PackageEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\PackageCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package * - * @method Package getDecoratedObject() - * @mixin Package + * @method static Package create(array $parameters = []) + * @method Package getDecoratedObject() + * @mixin Package */ class PackageEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginEditor.class.php b/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginEditor.class.php index 7634479390..fb1234e865 100644 --- a/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginEditor.class.php +++ b/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Installation\Plugin * - * @method PackageInstallationPlugin getDecoratedObject() - * @mixin PackageInstallationPlugin + * @method static PackageInstallationPlugin create(array $parameters = []) + * @method PackageInstallationPlugin getDecoratedObject() + * @mixin PackageInstallationPlugin */ class PackageInstallationPluginEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueEditor.class.php b/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueEditor.class.php index ea80c2ff0c..ad473c648d 100644 --- a/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueEditor.class.php +++ b/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Installation\Queue * - * @method PackageInstallationQueue getDecoratedObject() - * @mixin PackageInstallationQueue + * @method static PackageInstallationQueue create(array $parameters = []) + * @method PackageInstallationQueue getDecoratedObject() + * @mixin PackageInstallationQueue */ class PackageInstallationQueueEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/package/update/PackageUpdateEditor.class.php b/wcfsetup/install/files/lib/data/package/update/PackageUpdateEditor.class.php index b5f6298c66..4052f938e9 100644 --- a/wcfsetup/install/files/lib/data/package/update/PackageUpdateEditor.class.php +++ b/wcfsetup/install/files/lib/data/package/update/PackageUpdateEditor.class.php @@ -9,9 +9,10 @@ use wcf\data\DatabaseObjectEditor; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Update - * - * @method PackageUpdate getDecoratedObject() - * @mixin PackageUpdate + * + * @method static PackageUpdate create(array $parameters = []) + * @method PackageUpdate getDecoratedObject() + * @mixin PackageUpdate */ class PackageUpdateEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php index 8523c02279..6a2087175a 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\PackageUpdateCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Update\Server * - * @method PackageUpdateServer getDecoratedObject() - * @mixin PackageUpdateServer + * @method static PackageUpdateServer create(array $parameters = []) + * @method PackageUpdateServer getDecoratedObject() + * @mixin PackageUpdateServer */ class PackageUpdateServerEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersionEditor.class.php b/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersionEditor.class.php index 7f1e73d9ee..a2f48db85d 100644 --- a/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersionEditor.class.php +++ b/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersionEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Update\Version * - * @method PackageUpdateVersion getDecoratedObject() - * @mixin PackageUpdateVersion + * @method static PackageUpdateVersion create(array $parameters = []) + * @method PackageUpdateVersion getDecoratedObject() + * @mixin PackageUpdateVersion */ class PackageUpdateVersionEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/page/PageEditor.class.php b/wcfsetup/install/files/lib/data/page/PageEditor.class.php index 61daed793f..ff607803a0 100644 --- a/wcfsetup/install/files/lib/data/page/PageEditor.class.php +++ b/wcfsetup/install/files/lib/data/page/PageEditor.class.php @@ -18,8 +18,9 @@ use wcf\util\FileUtil; * @package WoltLabSuite\Core\Data\Page * @since 3.0 * - * @method Page getDecoratedObject() - * @mixin Page + * @method static Page create(array $parameters = []) + * @method Page getDecoratedObject() + * @mixin Page */ class PageEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/page/content/PageContentEditor.class.php b/wcfsetup/install/files/lib/data/page/content/PageContentEditor.class.php index f0f9ae0ef0..3f71181bb9 100644 --- a/wcfsetup/install/files/lib/data/page/content/PageContentEditor.class.php +++ b/wcfsetup/install/files/lib/data/page/content/PageContentEditor.class.php @@ -11,8 +11,9 @@ use wcf\data\DatabaseObjectEditor; * @package WoltLabSuite\Core\Data\Page\Content * @since 3.0 * - * @method PageContent getDecoratedObject() - * @mixin PageContent + * @method static PageContent create(array $parameters = []) + * @method PageContent getDecoratedObject() + * @mixin PageContent */ class PageContentEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php index 19fa03fc33..52848c1857 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php @@ -12,9 +12,10 @@ use wcf\system\WCF; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Paid\Subscription - * - * @method PaidSubscription getDecoratedObject() - * @mixin PaidSubscription + * + * @method static PaidSubscription create(array $parameters = []) + * @method PaidSubscription getDecoratedObject() + * @mixin PaidSubscription */ class PaidSubscriptionEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLogEditor.class.php b/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLogEditor.class.php index 051b747634..3a46ff4cc1 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLogEditor.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLogEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Paid\Subscription\Transaction\Log * - * @method PaidSubscriptionTransactionLog getDecoratedObject() - * @mixin PaidSubscriptionTransactionLog + * @method static PaidSubscriptionTransactionLog create(array $parameters = []) + * @method PaidSubscriptionTransactionLog getDecoratedObject() + * @mixin PaidSubscriptionTransactionLog */ class PaidSubscriptionTransactionLogEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserEditor.class.php b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserEditor.class.php index 011a2b6372..166558fd51 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserEditor.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUserEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Paid\Subscription\User * - * @method PaidSubscriptionUser getDecoratedObject() - * @mixin PaidSubscriptionUser + * @method static PaidSubscriptionUser create(array $parameters = []) + * @method PaidSubscriptionUser getDecoratedObject() + * @mixin PaidSubscriptionUser */ class PaidSubscriptionUserEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/poll/PollEditor.class.php b/wcfsetup/install/files/lib/data/poll/PollEditor.class.php index 74d954809c..6e5b5d8edd 100644 --- a/wcfsetup/install/files/lib/data/poll/PollEditor.class.php +++ b/wcfsetup/install/files/lib/data/poll/PollEditor.class.php @@ -10,9 +10,10 @@ use wcf\system\WCF; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Poll - * - * @method Poll getDecoratedObject() - * @mixin Poll + * + * @method static Poll create(array $parameters = []) + * @method Poll getDecoratedObject() + * @mixin Poll */ class PollEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/poll/option/PollOptionEditor.class.php b/wcfsetup/install/files/lib/data/poll/option/PollOptionEditor.class.php index 3f4efc3295..cd5fd2a395 100644 --- a/wcfsetup/install/files/lib/data/poll/option/PollOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/poll/option/PollOptionEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Poll\Option * - * @method PollOption getDecoratedObject() - * @mixin PollOption + * @method static PollOption create(array $parameters = []) + * @method PollOption getDecoratedObject() + * @mixin PollOption */ class PollOptionEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/search/SearchEditor.class.php b/wcfsetup/install/files/lib/data/search/SearchEditor.class.php index 0fe2328c81..25259bc16a 100644 --- a/wcfsetup/install/files/lib/data/search/SearchEditor.class.php +++ b/wcfsetup/install/files/lib/data/search/SearchEditor.class.php @@ -9,9 +9,10 @@ use wcf\data\DatabaseObjectEditor; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Search - * - * @method Search getDecoratedObject() - * @mixin Search + * + * @method static Search create(array $parameters = []) + * @method Search getDecoratedObject() + * @mixin Search */ class SearchEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordEditor.class.php b/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordEditor.class.php index cbf8e98847..e7dd1fb67d 100644 --- a/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordEditor.class.php +++ b/wcfsetup/install/files/lib/data/search/keyword/SearchKeywordEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Search\Keyword * - * @method SearchKeyword getDecoratedObject() - * @mixin SearchKeyword + * @method static SearchKeyword create(array $parameters = []) + * @method SearchKeyword getDecoratedObject() + * @mixin SearchKeyword */ class SearchKeywordEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/smiley/SmileyEditor.class.php b/wcfsetup/install/files/lib/data/smiley/SmileyEditor.class.php index a1f78bc451..9cf862e96d 100644 --- a/wcfsetup/install/files/lib/data/smiley/SmileyEditor.class.php +++ b/wcfsetup/install/files/lib/data/smiley/SmileyEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\SmileyCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Smiley * - * @method Smiley getDecoratedObject() - * @mixin Smiley + * @method static Smiley create(array $parameters = []) + * @method Smiley getDecoratedObject() + * @mixin Smiley */ class SmileyEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/spider/SpiderEditor.class.php b/wcfsetup/install/files/lib/data/spider/SpiderEditor.class.php index 485c25448c..9744af134c 100644 --- a/wcfsetup/install/files/lib/data/spider/SpiderEditor.class.php +++ b/wcfsetup/install/files/lib/data/spider/SpiderEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Spider * - * @method Spider getDecoratedObject() - * @mixin Spider + * @method static Spider create(array $parameters = []) + * @method Spider getDecoratedObject() + * @mixin Spider */ class SpiderEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/stat/daily/StatDailyEditor.class.php b/wcfsetup/install/files/lib/data/stat/daily/StatDailyEditor.class.php index 1daf3d7162..ba8830021a 100644 --- a/wcfsetup/install/files/lib/data/stat/daily/StatDailyEditor.class.php +++ b/wcfsetup/install/files/lib/data/stat/daily/StatDailyEditor.class.php @@ -9,9 +9,10 @@ use wcf\data\DatabaseObjectEditor; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Stat\Daily - * - * @method StatDaily getDecoratedObject() - * @mixin StatDaily + * + * @method static StatDaily create(array $parameters = []) + * @method StatDaily getDecoratedObject() + * @mixin StatDaily */ class StatDailyEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 21698a3573..a9411d3c1c 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -878,6 +878,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject /** * @inheritDoc + * @return Style */ public static function create(array $parameters = []) { $variables = null; @@ -903,7 +904,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject $parameters['isDefault'] = 1; } - // save style + /** @var Style $style */ $style = parent::create($parameters); $styleEditor = new StyleEditor($style); diff --git a/wcfsetup/install/files/lib/data/style/variable/StyleVariableEditor.class.php b/wcfsetup/install/files/lib/data/style/variable/StyleVariableEditor.class.php index fa54e6092f..5dc35716e6 100644 --- a/wcfsetup/install/files/lib/data/style/variable/StyleVariableEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/variable/StyleVariableEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Style\Variable * - * @method StyleVariable getDecoratedObject() - * @mixin StyleVariable + * @method static StyleVariable create(array $parameters = []) + * @method StyleVariable getDecoratedObject() + * @mixin StyleVariable */ class StyleVariableEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/tag/TagEditor.class.php b/wcfsetup/install/files/lib/data/tag/TagEditor.class.php index e5e652f1e8..53d12b9bba 100644 --- a/wcfsetup/install/files/lib/data/tag/TagEditor.class.php +++ b/wcfsetup/install/files/lib/data/tag/TagEditor.class.php @@ -11,8 +11,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Tag * - * @method Tag getDecoratedObject() - * @mixin Tag + * @method static Tag create(array $parameters = []) + * @method Tag getDecoratedObject() + * @mixin Tag */ class TagEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php b/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php index 3015ddf54f..7a9118ee1d 100644 --- a/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php +++ b/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php @@ -26,12 +26,14 @@ class TemplateEditor extends DatabaseObjectEditor { /** * @inheritDoc + * @return Template */ public static function create(array $parameters = []) { // obtain default values if (!isset($parameters['packageID'])) $parameters['packageID'] = PACKAGE_ID; if (!isset($parameters['lastModificationTime'])) $parameters['lastModificationTime'] = TIME_NOW; + /** @noinspection PhpIncompatibleReturnTypeInspection */ return parent::create($parameters); } diff --git a/wcfsetup/install/files/lib/data/template/group/TemplateGroupEditor.class.php b/wcfsetup/install/files/lib/data/template/group/TemplateGroupEditor.class.php index 542f2e2dc6..bc8f601edf 100644 --- a/wcfsetup/install/files/lib/data/template/group/TemplateGroupEditor.class.php +++ b/wcfsetup/install/files/lib/data/template/group/TemplateGroupEditor.class.php @@ -16,8 +16,9 @@ use wcf\util\DirectoryUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Template\Group * - * @method TemplateGroup getDecoratedObject() - * @mixin TemplateGroup + * @method static TemplateGroup create(array $parameters = []) + * @method TemplateGroup getDecoratedObject() + * @mixin TemplateGroup */ class TemplateGroupEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/template/listener/TemplateListenerEditor.class.php b/wcfsetup/install/files/lib/data/template/listener/TemplateListenerEditor.class.php index d3b4e874cd..5c2bad2c78 100644 --- a/wcfsetup/install/files/lib/data/template/listener/TemplateListenerEditor.class.php +++ b/wcfsetup/install/files/lib/data/template/listener/TemplateListenerEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Template\Listener * - * @method TemplateListener getDecoratedObject() - * @mixin TemplateListener + * @method static TemplateListener create(array $parameters = []) + * @method TemplateListener getDecoratedObject() + * @mixin TemplateListener */ class TemplateListenerEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index b8b11f7cb7..c1a19a1642 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -35,6 +35,7 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * @inheritDoc + * @return User */ public static function create(array $parameters = []) { // create salt and password hash @@ -48,6 +49,7 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { // handle registration date if (!isset($parameters['registrationDate'])) $parameters['registrationDate'] = TIME_NOW; + /** @var User $user */ $user = parent::create($parameters); // create default values for user options diff --git a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventEditor.class.php b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventEditor.class.php index 7d3d90b198..0a8f66a222 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEventEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Activity\Event * - * @method UserActivityEvent getDecoratedObject() - * @mixin UserActivityEvent + * @method static UserActivityEvent create(array $parameters = []) + * @method UserActivityEvent getDecoratedObject() + * @mixin UserActivityEvent */ class UserActivityEventEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailureEditor.class.php b/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailureEditor.class.php index b7870b51c1..1d8d4741e8 100644 --- a/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailureEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailureEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Authentication\Failure * - * @method UserAuthenticationFailure getDecoratedObject() - * @mixin UserAuthenticationFailure + * @method static UserAuthenticationFailure create(array $parameters = []) + * @method UserAuthenticationFailure getDecoratedObject() + * @mixin UserAuthenticationFailure */ class UserAuthenticationFailureEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarEditor.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarEditor.class.php index 4650b472a2..419e5c4761 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatarEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatarEditor.class.php @@ -11,8 +11,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Avatar * - * @method UserAvatar getDecoratedObject() - * @mixin UserAvatar + * @method static UserAvatar create(array $parameters = []) + * @method UserAvatar getDecoratedObject() + * @mixin UserAvatar */ class UserAvatarEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/follow/UserFollowEditor.class.php b/wcfsetup/install/files/lib/data/user/follow/UserFollowEditor.class.php index 9a5a3017e8..a7e1ce976f 100644 --- a/wcfsetup/install/files/lib/data/user/follow/UserFollowEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/follow/UserFollowEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Follow * - * @method UserFollow getDecoratedObject() - * @mixin UserFollow + * @method static UserFollow create(array $parameters = []) + * @method UserFollow getDecoratedObject() + * @mixin UserFollow */ class UserFollowEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php index 1d606ff7cd..83aa16e240 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php @@ -15,7 +15,7 @@ use wcf\system\WCF; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Group - * + * * @method UserGroup getDecoratedObject() * @mixin UserGroup */ @@ -27,8 +27,10 @@ class UserGroupEditor extends DatabaseObjectEditor implements IEditableCachedObj /** * @inheritDoc + * @return UserGroup */ public static function create(array $parameters = []) { + /** @var UserGroup $group */ $group = parent::create($parameters); // update accessible groups diff --git a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentEditor.class.php b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentEditor.class.php index 57d0d798c2..7d93d5067f 100644 --- a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignmentEditor.class.php @@ -14,8 +14,9 @@ use wcf\system\cache\builder\UserGroupAssignmentCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Group\Assignment * - * @method UserGroupAssignment getDecoratedObject() - * @mixin UserGroupAssignment + * @method static UserGroupAssignment create(array $parameters = []) + * @method UserGroupAssignment getDecoratedObject() + * @mixin UserGroupAssignment */ class UserGroupAssignmentEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionEditor.class.php b/wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionEditor.class.php index 2cf4c6281e..560939dce7 100644 --- a/wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/option/UserGroupOptionEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\cache\builder\UserGroupOptionCacheBuilder; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Group\Option * - * @method UserGroupOption getDecoratedObject() - * @mixin UserGroupOption + * @method static UserGroupOption create(array $parameters = []) + * @method UserGroupOption getDecoratedObject() + * @mixin UserGroupOption */ class UserGroupOptionEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** diff --git a/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategoryEditor.class.php b/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategoryEditor.class.php index c5ea27b084..86323c6357 100644 --- a/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategoryEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Group\Option\Category * - * @method UserGroupOptionCategory getDecoratedObject() - * @mixin UserGroupOptionCategory + * @method static UserGroupOptionCategory create(array $parameters = []) + * @method UserGroupOptionCategory getDecoratedObject() + * @mixin UserGroupOptionCategory */ class UserGroupOptionCategoryEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreEditor.class.php b/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreEditor.class.php index ca3795a361..aa51ec54b4 100644 --- a/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Ignore * - * @method UserIgnore getDecoratedObject() - * @mixin UserIgnore + * @method static UserIgnore create(array $parameters = []) + * @method UserIgnore getDecoratedObject() + * @mixin UserIgnore */ class UserIgnoreEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItemEditor.class.php b/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItemEditor.class.php index 8efeacd4e2..1d2fcf25b3 100644 --- a/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItemEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Menu\Item * - * @method UserMenuItem getDecoratedObject() - * @mixin UserMenuItem + * @method static UserMenuItem create(array $parameters = []) + * @method UserMenuItem getDecoratedObject() + * @mixin UserMenuItem */ class UserMenuItemEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/notification/UserNotificationEditor.class.php b/wcfsetup/install/files/lib/data/user/notification/UserNotificationEditor.class.php index abc752a9f8..204b2722ec 100644 --- a/wcfsetup/install/files/lib/data/user/notification/UserNotificationEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/UserNotificationEditor.class.php @@ -11,8 +11,9 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Notification * - * @method UserNotification getDecoratedObject() - * @mixin UserNotification + * @method static UserNotification create(array $parameters = []) + * @method UserNotification getDecoratedObject() + * @mixin UserNotification */ class UserNotificationEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEventEditor.class.php b/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEventEditor.class.php index 9bf306072d..2e06abf03a 100644 --- a/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEventEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEventEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Notification\Event * - * @method UserNotificationEvent getDecoratedObject() - * @mixin UserNotificationEvent + * @method static UserNotificationEvent create(array $parameters = []) + * @method UserNotificationEvent getDecoratedObject() + * @mixin UserNotificationEvent */ class UserNotificationEventEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatchEditor.class.php b/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatchEditor.class.php index 4adb4d04d4..bc04699b5d 100644 --- a/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatchEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatchEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Object\Watch * - * @method UserObjectWatch getDecoratedObject() - * @mixin UserObjectWatch + * @method static UserObjectWatch create(array $parameters = []) + * @method UserObjectWatch getDecoratedObject() + * @mixin UserObjectWatch */ class UserObjectWatchEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php index c8be05b6e3..7f7b266109 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php @@ -24,8 +24,10 @@ class UserOptionEditor extends DatabaseObjectEditor implements IEditableCachedOb /** * @inheritDoc + * @return UserOption */ public static function create(array $parameters = []) { + /** @var UserOption $userOption */ $userOption = parent::create($parameters); // alter the table "wcf".WCF_N."_user_option_value" with this new option diff --git a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryEditor.class.php b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryEditor.class.php index 9337a397bd..0e8653fa72 100644 --- a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategoryEditor.class.php @@ -11,7 +11,7 @@ use wcf\system\cache\builder\UserOptionCacheBuilder; * @copyright 2001-2016 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Option\Category - * + * * @method UserOptionCategory getDecoratedObject() * @mixin UserOptionCategory */ @@ -23,11 +23,13 @@ class UserOptionCategoryEditor extends DatabaseObjectEditor implements IEditable /** * @inheritDoc + * @return UserOptionCategory */ public static function create(array $parameters = []) { // obtain default values if (!isset($parameters['packageID'])) $parameters['packageID'] = PACKAGE_ID; + /** @noinspection PhpIncompatibleReturnTypeInspection */ return parent::create($parameters); } diff --git a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php index b73dfecfa1..480b7dd634 100644 --- a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php @@ -24,11 +24,13 @@ class UserProfileMenuItemEditor extends DatabaseObjectEditor implements IEditabl /** * @inheritDoc + * @return UserProfileMenuItem */ public static function create(array $parameters = []) { // calculate show order $parameters['showOrder'] = self::getShowOrder($parameters['showOrder']); + /** @noinspection PhpIncompatibleReturnTypeInspection */ return parent::create($parameters); } diff --git a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorEditor.class.php b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorEditor.class.php index df746f926f..377c05ca81 100644 --- a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitorEditor.class.php @@ -10,8 +10,9 @@ use wcf\data\DatabaseObjectEditor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Profile\Visitor * - * @method UserProfileVisitor getDecoratedObject() - * @mixin UserProfileVisitor + * @method static UserProfileVisitor create(array $parameters = []) + * @method UserProfileVisitor getDecoratedObject() + * @mixin UserProfileVisitor */ class UserProfileVisitorEditor extends DatabaseObjectEditor { /** diff --git a/wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php b/wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php index 38350df1f9..a50d4f68a3 100644 --- a/wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php @@ -12,8 +12,9 @@ use wcf\system\user\storage\UserStorageHandler; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Rank * - * @method UserRank getDecoratedObject() - * @mixin UserRank + * @method static UserRank create(array $parameters = []) + * @method UserRank getDecoratedObject() + * @mixin UserRank */ class UserRankEditor extends DatabaseObjectEditor implements IEditableCachedObject { /**