-
Notifications
You must be signed in to change notification settings - Fork 71
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
ENH Add generic types #511
Conversation
b4c8bc8
to
5b3bd5f
Compare
@@ -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() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
src/DataObjects/WorkflowAction.php
Outdated
* | ||
* @method WorkflowDefinition WorkflowDef() | ||
* @method Member Member() | ||
* @method \SilverStripe\ORM\HasManyList<WorkflowTransition> Transitions() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/DataObjects/WorkflowInstance.php
Outdated
@@ -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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import classes
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import classes
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import ManyManyList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
5b3bd5f
to
1a35e0f
Compare
Requires silverstripe/silverstripe-framework#11108 for these generics to take effect.
There were some missing
@method
annotations as well.Issue