Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fb7af0

Browse files
committed
minor #44631 [Workflow] Add return type annotations to the Event class (derrabus)
This PR was merged into the 6.1 branch. Discussion ---------- [Workflow] Add return type annotations to the Event class | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Paving the road to a fully-typed Symfony 7. 😎 Commits ------- ccc9186 [Workflow] Add return type annotations to the Event class
2 parents e5ea631 + ccc9186 commit 3fb7af0

File tree

1 file changed

+12
-0
lines changed
  • src/Symfony/Component/Workflow/Event

1 file changed

+12
-0
lines changed

src/Symfony/Component/Workflow/Event/Event.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,25 @@ public function __construct(object $subject, Marking $marking, Transition $trans
3838
$this->context = $context;
3939
}
4040

41+
/**
42+
* @return Marking
43+
*/
4144
public function getMarking()
4245
{
4346
return $this->marking;
4447
}
4548

49+
/**
50+
* @return object
51+
*/
4652
public function getSubject()
4753
{
4854
return $this->subject;
4955
}
5056

57+
/**
58+
* @return Transition|null
59+
*/
5160
public function getTransition()
5261
{
5362
return $this->transition;
@@ -58,6 +67,9 @@ public function getWorkflow(): WorkflowInterface
5867
return $this->workflow;
5968
}
6069

70+
/**
71+
* @return string
72+
*/
6173
public function getWorkflowName()
6274
{
6375
return $this->workflow->getName();

0 commit comments

Comments
 (0)