Sulu\Bundle\ContentBundle\Content\Structure\ExcerptValueContainer::__get PHP Method

__get() public method

public __get ( $name )
    public function __get($name)
    {
        if ($this->__isset($name)) {
            return $this->data[$name];
        } else {
            return;
        }
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 public function getContentData($container)
 {
     $container = new ExcerptValueContainer($container);
     $data = [];
     foreach ($this->getExcerptStructure()->getProperties() as $property) {
         if ($container->__isset($property->getName())) {
             $property->setValue($container->__get($property->getName()));
             $contentType = $this->contentTypeManager->get($property->getContentTypeName());
             $data[$property->getName()] = $contentType->getContentData($property);
         }
     }
     return $data;
 }
All Usage Examples Of Sulu\Bundle\ContentBundle\Content\Structure\ExcerptValueContainer::__get