Skip to content

Commit

Permalink
Merge pull request #509 from creative-commoners/pulls/6.1/docblock
Browse files Browse the repository at this point in the history
MNT Update @methods on class docblocks
  • Loading branch information
GuySartorelli authored Dec 14, 2023
2 parents 6abaacf + 90e5926 commit dfa839c
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 11 deletions.
2 changes: 2 additions & 0 deletions src/Actions/AssignUsersToWorkflowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @subpackage actions
* @method SilverStripe\ORM\ManyManyList<Group> Groups()
* @method SilverStripe\ORM\ManyManyList<Member> Users()
*/
class AssignUsersToWorkflowAction extends WorkflowAction
{
Expand Down
2 changes: 0 additions & 2 deletions src/Actions/SetPropertyWorkflowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
use Symbiote\AdvancedWorkflow\DataObjects\WorkflowInstance;

/**
*
*
* @author Marcus Nyeholt <marcus@symbiote.com.au>
*/
class SetPropertyWorkflowAction extends WorkflowAction
Expand Down
4 changes: 2 additions & 2 deletions src/Actions/UnpublishItemWorkflowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Symbiote\AdvancedWorkflow\DataObjects\WorkflowInstance;
use Symbiote\AdvancedWorkflow\Extensions\WorkflowEmbargoExpiryExtension;
use Symbiote\AdvancedWorkflow\Jobs\WorkflowPublishTargetJob;
use Symbiote\QueuedJob\Services\AbstractQueuedJob;
use Symbiote\QueuedJob\Services\QueuedJobService;
use Symbiote\QueuedJobs\Services\AbstractQueuedJob;
use Symbiote\QueuedJobs\Services\QueuedJobService;

/**
* Unpublishes an item
Expand Down
1 change: 1 addition & 0 deletions src/DataObjects/ImportedWorkflowTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* @author russell@silverstripe.com
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @method WorkflowDefinition Definition()
*/
class ImportedWorkflowTemplate extends DataObject
{
Expand Down
4 changes: 3 additions & 1 deletion src/DataObjects/WorkflowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
* the action(s) that occur while in that state. An action can then have
* subsequent transitions out of the current state.
*
* @method WorkflowDefinition WorkflowDef()
* @author marcus@symbiote.com.au
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @method Member Member()
* @method SilverStripe\ORM\HasManyList<WorkflowTransition> Transitions()
* @method WorkflowDefinition WorkflowDef()
*/
class WorkflowAction extends DataObject
{
Expand Down
3 changes: 3 additions & 0 deletions src/DataObjects/WorkflowActionInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
*
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @method WorkflowAction BaseAction()
* @method Member Member()
* @method WorkflowInstance Workflow()
*/
class WorkflowActionInstance extends DataObject
{
Expand Down
4 changes: 4 additions & 0 deletions src/DataObjects/WorkflowDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
* @author marcus@symbiote.com.au
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @method SilverStripe\ORM\HasManyList<WorkflowAction> Actions()
* @method SilverStripe\ORM\ManyManyList<Group> Groups()
* @method SilverStripe\ORM\HasManyList<WorkflowInstance> Instances()
* @method SilverStripe\ORM\ManyManyList<Member> Users()
*/
class WorkflowDefinition extends DataObject
{
Expand Down
10 changes: 6 additions & 4 deletions src/DataObjects/WorkflowInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@
* button (eg 'apply for approval'). This creates a standalone object
* that maintains the state of the workflow process.
*
* @method WorkflowDefinition Definition()
* @method WorkflowActionInstance CurrentAction()
* @method Member Initiator()
*
* @author marcus@symbiote.com.au
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @method SilverStripe\ORM\HasManyList<WorkflowActionInstance> Actions()
* @method WorkflowActionInstance CurrentAction()
* @method WorkflowDefinition Definition()
* @method SilverStripe\ORM\ManyManyList<Group> Groups()
* @method Member Initiator()
* @method SilverStripe\ORM\ManyManyList<Member> Users()
*/
class WorkflowInstance extends DataObject
{
Expand Down
6 changes: 4 additions & 2 deletions src/DataObjects/WorkflowTransition.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
* Therefore, any logic around whether the workflow can proceed should be
* managed within this method.
*
* @method WorkflowAction Action()
* @method WorkflowAction NextAction()
* @author marcus@symbiote.com.au
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @method WorkflowAction Action()
* @method SilverStripe\ORM\ManyManyList<Group> Groups()
* @method WorkflowAction NextAction()
* @method SilverStripe\ORM\ManyManyList<Member> Users()
*/
class WorkflowTransition extends DataObject
{
Expand Down
2 changes: 2 additions & 0 deletions src/Extensions/WorkflowApplicable.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
* @author marcus@symbiote.com.au
* @license BSD License (http://silverstripe.org/bsd-license/)
* @package advancedworkflow
* @method SilverStripe\ORM\ManyManyList<WorkflowDefinition> AdditionalWorkflowDefinitions()
* @method WorkflowDefinition WorkflowDefinition()
*/
class WorkflowApplicable extends DataExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Extensions/WorkflowEmbargoExpiryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
*
* @author marcus@symbiote.com.au
* @license BSD License http://silverstripe.org/bsd-license/
* @method QueuedJobDescriptor PublishJob()
* @method QueuedJobDescriptor UnPublishJob()
*/
class WorkflowEmbargoExpiryExtension extends DataExtension
{
Expand Down

0 comments on commit dfa839c

Please sign in to comment.