src/Sulu/Component/Content/Document/Subscriber/WorkflowStageSubscriber.php
private function setWorkflowStageOnNode(NodeInterface $node, $locale, $workflowStage, \DateTime $publishDate = null)
    {
        $node->setProperty(
            $this->propertyEncoder->localizedSystemName(self::WORKFLOW_STAGE_FIELD, $locale),
            $workflowStage
        );

        if ($publishDate) {
            $node->setProperty(
                $this->propertyEncoder->localizedSystemName(self::PUBLISHED_FIELD, $locale),
                $publishDate
            );
        }
    }
private function setWorkflowStageOnNode(NodeInterface $node, $locale, $workflowStage, \DateTime $publishDate = null)
    {
        $node->setProperty(
            $this->propertyEncoder->localizedSystemName(self::WORKFLOW_STAGE_FIELD, $locale),
            $workflowStage
        );

        if ($publishDate) {
            $node->setProperty(
                $this->propertyEncoder->localizedSystemName(self::PUBLISHED_FIELD, $locale),
                $publishDate
            );
        }
    }
private function setWorkflowStageOnNode ( NodeInterface $ node , $ locale , $ workflowStage , \ DateTime $ publishDate = null ) { $ node -> setProperty ( $ this -> propertyEncoder -> localizedSystemName ( self :: WORKFLOW_STAGE_FIELD , $ locale ) , $ workflowStage ) ; if ( $ publishDate ) { $ node -> setProperty ( $ this -> propertyEncoder -> localizedSystemName ( self :: PUBLISHED_FIELD , $ locale ) , $ publishDate ) ; } }
Sets the workflow stage properties on the given node.

@param NodeInterface $node
@param string $locale
@param int $workflowStage
@param \DateTime $publishDate
Sets the workflow stage properties on the given node .