Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Add generic types #511

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

GuySartorelli
Copy link
Collaborator

Requires silverstripe/silverstripe-framework#11108 for these generics to take effect.

There were some missing @method annotations as well.

Issue

@@ -20,6 +20,9 @@
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @subpackage actions
*
* @method \SilverStripe\ORM\ManyManyList<Member> Users()
* @method \SilverStripe\ORM\ManyManyList<Group> Groups()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should import ManyManyList rather than have the full FQCN here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not how we did them previously, but I'll make the change to avoid ping pong (and cause I happen to prefer that anyway)

Done

*
* @method WorkflowDefinition WorkflowDef()
* @method Member Member()
* @method \SilverStripe\ORM\HasManyList<WorkflowTransition> Transitions()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import HasManyList rather than use FQCN

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

* @method \SilverStripe\ORM\HasManyList<WorkflowAction> Actions()
* @method \SilverStripe\ORM\HasManyList<WorkflowInstance> Instances()
* @method \SilverStripe\ORM\ManyManyList<Member> Users()
* @method \SilverStripe\ORM\ManyManyList<Group> Groups()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import classes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -41,6 +41,9 @@
* @method WorkflowDefinition Definition()
* @method WorkflowActionInstance CurrentAction()
* @method Member Initiator()
* @method \SilverStripe\ORM\HasManyList<WorkflowActionInstance> Actions()
* @method \SilverStripe\ORM\ManyManyList<Member> Users()
* @method \SilverStripe\ORM\ManyManyList<Group> Groups()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import classes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

* @method WorkflowAction Action()
* @method WorkflowAction NextAction()
* @method \SilverStripe\ORM\ManyManyList<Member> Users()
* @method \SilverStripe\ORM\ManyManyList<Group> Groups()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import classes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -35,6 +36,11 @@
* @author marcus@symbiote.com.au
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
*
* @method WorkflowDefinition WorkflowDefinition()
* @method \SilverStripe\ORM\ManyManyList<WorkflowDefinition> AdditionalWorkflowDefinitions()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import ManyManyList

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@emteknetnz emteknetnz merged commit 65ec116 into symbiote:6 Jan 23, 2024
12 checks passed
@emteknetnz emteknetnz deleted the pulls/6/add-generics branch January 23, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants