src/Sulu/Component/Content/Compat/Structure.php
public function getProperties($flatten = false)
    {
        if (false === $flatten) {
            return $this->properties;
        } else {
            $result = [];
            foreach ($this->properties as $property) {
                if ($property instanceof SectionPropertyInterface) {
                    $result = array_merge($result, $property->getChildProperties());
                } else {
                    $result[] = $property;
                }
            }

            return $result;
        }
    }
public function getProperties($flatten = false)
    {
        if (false === $flatten) {
            return $this->properties;
        } else {
            $result = [];
            foreach ($this->properties as $property) {
                if ($property instanceof SectionPropertyInterface) {
                    $result = array_merge($result, $property->getChildProperties());
                } else {
                    $result[] = $property;
                }
            }

            return $result;
        }
    }
public function getProperties ( $ flatten = false ) { if ( false === $ flatten ) { return $ this -> properties ; } else { $ result = [ ] ; foreach ( $ this -> properties as $ property ) { if ( $ property instanceof SectionPropertyInterface ) { $ result = array_merge ( $ result , $ property -> getChildProperties ( ) ) ; } else { $ result [ ] = $ property ; } } return $ result ; } }
returns an array of properties.

@param bool $flatten

@return PropertyInterface[]
returns an array of properties .