src/Sulu/Component/Content/Document/Subscriber/ResourceSegmentSubscriber.php
private function persistDocument(ResourceSegmentBehavior $document, PropertyMetadata $property)
    {
        $document->getStructure()->getProperty(
            $property->getName()
        )->setValue($document->getResourceSegment());
    }
private function persistDocument(ResourceSegmentBehavior $document, PropertyMetadata $property)
    {
        $document->getStructure()->getProperty(
            $property->getName()
        )->setValue($document->getResourceSegment());
    }
private function persistDocument ( ResourceSegmentBehavior $ document , PropertyMetadata $ property ) { $ document -> getStructure ( ) -> getProperty ( $ property -> getName ( ) ) -> setValue ( $ document -> getResourceSegment ( ) ) ; }
Sets the ResourceSegment to the given property of the given document.

@param ResourceSegmentBehavior $document
@param PropertyMetadata $property
Sets the ResourceSegment to the given property of the given document .