MNT Update @methods on class docblocks

This commit is contained in:
Steve Boyd 2023-12-15 17:04:35 +13:00
parent 8cf7f90745
commit 70d9cd27b2
12 changed files with 15 additions and 12 deletions

View File

@ -28,7 +28,7 @@ use Symbiote\GridFieldExtensions\GridFieldEditableColumns;
use Symbiote\GridFieldExtensions\GridFieldOrderableRows; use Symbiote\GridFieldExtensions\GridFieldOrderableRows;
/** /**
* @method DataList|EditableFormField[] Fields() * @method SilverStripe\ORM\HasManyList<EditableFormField> Fields()
*/ */
class UserFormFieldEditorExtension extends DataExtension class UserFormFieldEditorExtension extends DataExtension
{ {

View File

@ -14,7 +14,7 @@ use SilverStripe\Versioned\Versioned;
/** /**
* @property string $UserFormUpload * @property string $UserFormUpload
* @method File SubmittedFileField * @method SubmittedFileField SubmittedFileField()
*/ */
class UserFormFileExtension extends DataExtension class UserFormFileExtension extends DataExtension
{ {

View File

@ -20,8 +20,8 @@ use SilverStripe\Versioned\Versioned;
* @property string $Display * @property string $Display
* @property string $FieldValue * @property string $FieldValue
* @property int $ParentID * @property int $ParentID
* @method EditableFormField Parent()
* @method EditableFormField ConditionField() * @method EditableFormField ConditionField()
* @method EditableFormField Parent()
*/ */
class EditableCustomRule extends DataObject class EditableCustomRule extends DataObject
{ {

View File

@ -57,9 +57,9 @@ use Symbiote\GridFieldExtensions\GridFieldEditableColumns;
* @property int $ShowInSummary * @property int $ShowInSummary
* @property int $ShowOnLoad * @property int $ShowOnLoad
* @property int $Sort * @property int $Sort
* @method UserDefinedForm Parent() Parent page
* @method HasManyList|EditableCustomRule[] DisplayRules() List of EditableCustomRule objects
* @mixin Versioned * @mixin Versioned
* @method HasManyList<EditableCustomRule> DisplayRules()
* @method DataObject Parent()
*/ */
class EditableFormField extends DataObject class EditableFormField extends DataObject
{ {

View File

@ -12,7 +12,7 @@ use SilverStripe\UserForms\Model\EditableFormField;
* Specifies that this ends a group of fields * Specifies that this ends a group of fields
* *
* @property int $EditableFieldGroupEndID * @property int $EditableFieldGroupEndID
* @method EditableFieldGroupEnd EditableFieldGroupEnd() * @method EditableFieldGroupEnd End()
*/ */
class EditableFieldGroup extends EditableFormField class EditableFieldGroup extends EditableFormField
{ {

View File

@ -28,7 +28,7 @@ use SilverStripe\UserForms\Model\Submission\SubmittedFileField;
* @property int $FolderConfirmed * @property int $FolderConfirmed
* @property int $FolderID * @property int $FolderID
* @property float $MaxFileSizeMB * @property float $MaxFileSizeMB
* @method Folder Folder * @method Folder Folder()
*/ */
class EditableFileField extends EditableFormField class EditableFileField extends EditableFormField
{ {

View File

@ -31,7 +31,7 @@ use Symbiote\GridFieldExtensions\GridFieldTitleHeader;
* @see EditableDropdownField * @see EditableDropdownField
* *
* @package userforms * @package userforms
* @method HasManyList|EditableOption[] Options() * @method HasManyList<EditableOption> Options()
*/ */
class EditableMultipleOptionField extends EditableFormField class EditableMultipleOptionField extends EditableFormField
{ {

View File

@ -16,8 +16,8 @@ use SilverStripe\Versioned\Versioned;
* @property int $ParentID * @property int $ParentID
* @property int $Sort * @property int $Sort
* @property string $Value * @property string $Value
* @method EditableMultipleOptionField Parent()
* @mixin Versioned * @mixin Versioned
* @method EditableMultipleOptionField Parent()
*/ */
class EditableOption extends DataObject class EditableOption extends DataObject
{ {

View File

@ -62,7 +62,7 @@ use Symbiote\GridFieldExtensions\GridFieldEditableColumns;
* @property int $SendEmailFromFieldID * @property int $SendEmailFromFieldID
* @property int $SendEmailSubjectFieldID * @property int $SendEmailSubjectFieldID
* @property int $SendEmailToFieldID * @property int $SendEmailToFieldID
* @method HasManyList|EmailRecipientCondition[] CustomRules() * @method HasManyList<EmailRecipientCondition> CustomRules()
* @method DataObject Form() * @method DataObject Form()
* @method EditableFormField SendEmailFromField() * @method EditableFormField SendEmailFromField()
* @method EditableFormField SendEmailSubjectField() * @method EditableFormField SendEmailSubjectField()

View File

@ -19,9 +19,9 @@ use SilverStripe\Security\Member;
* @package userforms * @package userforms
* @property int $SubmittedByID * @property int $SubmittedByID
* @property int $ParentID * @property int $ParentID
* @method Member SubmittedBy()
* @method DataObject Parent() * @method DataObject Parent()
* @method HasManyList|SubmittedFormField[] Values() * @method Member SubmittedBy()
* @method HasManyList<SubmittedFormField> Values()
*/ */
class SubmittedForm extends DataObject class SubmittedForm extends DataObject
{ {

View File

@ -13,6 +13,7 @@ use SilverStripe\UserForms\Model\EditableFormField;
* @package userforms * @package userforms
* @property string $Name * @property string $Name
* @property string $Value * @property string $Value
* @method SubmittedForm Parent()
*/ */
class SubmittedFormField extends DataObject class SubmittedFormField extends DataObject
{ {

View File

@ -9,6 +9,8 @@ use SilverStripe\UserForms\Control\UserDefinedFormController;
/** /**
* @package userforms * @package userforms
* @method SilverStripe\ORM\HasManyList<SilverStripe\UserForms\Model\Recipient\EmailRecipient> EmailRecipients()
* @method SilverStripe\ORM\HasManyList<SilverStripe\UserForms\Model\Submission\SubmittedForm> Submissions()
*/ */
class UserDefinedForm extends Page class UserDefinedForm extends Page
{ {