public function getMarkedPlaces($subject, $placesNameOnly = true, $name = null)
    {
        $places = $this->workflowRegistry->get($subject, $name)->getMarking($subject)->getPlaces();

        if ($placesNameOnly) {
            return array_keys($places);
        }

        return $places;
    }
public function getMarkedPlaces($subject, $placesNameOnly = true, $name = null)
    {
        $places = $this->workflowRegistry->get($subject, $name)->getMarking($subject)->getPlaces();

        if ($placesNameOnly) {
            return array_keys($places);
        }

        return $places;
    }
public function getMarkedPlaces ( $ subject , $ placesNameOnly = true , $ name = null ) { $ places = $ this -> workflowRegistry -> get ( $ subject , $ name ) -> getMarking ( $ subject ) -> getPlaces ( ) ; if ( $ placesNameOnly ) { return array_keys ( $ places ) ; } return $ places ; }
Returns marked places.

@param object $subject        A subject
@param bool   $placesNameOnly If true, returns only places name. If false returns the raw representation
@param string $name           A workflow name

@return string[]|int[]
Returns marked places .