[Workflow] add Phpdoc for better IDE support
Allow IDEs to provide more precise auto-completion support.
This commit is contained in:
parent
3fe34be1ed
commit
916a97c834
@ -54,11 +54,17 @@ class DefinitionBuilder
|
||||
$this->initialPlace = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $place
|
||||
*/
|
||||
public function setInitialPlace($place)
|
||||
{
|
||||
$this->initialPlace = $place;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $place
|
||||
*/
|
||||
public function addPlace($place)
|
||||
{
|
||||
if (!preg_match('{^[\w\d_-]+$}', $place)) {
|
||||
@ -72,6 +78,9 @@ class DefinitionBuilder
|
||||
$this->places[$place] = $place;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string[] $places
|
||||
*/
|
||||
public function addPlaces(array $places)
|
||||
{
|
||||
foreach ($places as $place) {
|
||||
|
Reference in New Issue
Block a user