Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3b54ce8

Browse filesBrowse files
committed
minor #23700 [Workflow] add getter for workflow (Simperfit)
This PR was merged into the 3.4 branch. Discussion ---------- [Workflow] add getter for workflow | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #23695 | License | MIT | Doc PR | Commits ------- 9910ba1 [Workflow] feature: add getter in workflow
2 parents 9d66ee4 + 9910ba1 commit 3b54ce8
Copy full SHA for 3b54ce8

File tree

4 files changed

+32
-0
lines changed
Filter options

4 files changed

+32
-0
lines changed

‎src/Symfony/Component/Workflow/MarkingStore/MultipleStateMarkingStore.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Workflow/MarkingStore/MultipleStateMarkingStore.php
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,12 @@ public function setMarking($subject, Marking $marking)
5454
{
5555
$this->propertyAccessor->setValue($subject, $this->property, $marking->getPlaces());
5656
}
57+
58+
/**
59+
* @return string
60+
*/
61+
public function getProperty()
62+
{
63+
return $this->property;
64+
}
5765
}

‎src/Symfony/Component/Workflow/MarkingStore/SingleStateMarkingStore.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Workflow/MarkingStore/SingleStateMarkingStore.php
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,12 @@ public function setMarking($subject, Marking $marking)
5959
{
6060
$this->propertyAccessor->setValue($subject, $this->property, key($marking->getPlaces()));
6161
}
62+
63+
/**
64+
* @return string
65+
*/
66+
public function getProperty()
67+
{
68+
return $this->property;
69+
}
6270
}

‎src/Symfony/Component/Workflow/SupportStrategy/ClassInstanceSupportStrategy.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Workflow/SupportStrategy/ClassInstanceSupportStrategy.php
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,12 @@ public function supports(Workflow $workflow, $subject)
2626
{
2727
return $subject instanceof $this->className;
2828
}
29+
30+
/**
31+
* @return string
32+
*/
33+
public function getClassName()
34+
{
35+
return $this->className;
36+
}
2937
}

‎src/Symfony/Component/Workflow/Workflow.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Workflow/Workflow.php
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ public function getDefinition()
186186
return $this->definition;
187187
}
188188

189+
/**
190+
* @return MarkingStoreInterface
191+
*/
192+
public function getMarkingStore()
193+
{
194+
return $this->markingStore;
195+
}
196+
189197
private function doCan($subject, Marking $marking, Transition $transition)
190198
{
191199
foreach ($transition->getFroms() as $place) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.