public function getComponents()
    {
        $result = [];

        foreach ($this->children as $childGroup) {
            foreach ($childGroup as $child) {
                if ($child instanceof self) {
                    $result[] = $child;
                }
            }
        }

        return $result;
    }
public function getComponents()
    {
        $result = [];

        foreach ($this->children as $childGroup) {
            foreach ($childGroup as $child) {
                if ($child instanceof self) {
                    $result[] = $child;
                }
            }
        }

        return $result;
    }
public function getComponents ( ) { $ result = [ ] ; foreach ( $ this -> children as $ childGroup ) { foreach ( $ childGroup as $ child ) { if ( $ child instanceof self ) { $ result [ ] = $ child ; } } } return $ result ; }
This method only returns a list of sub-components. Properties are
ignored.

@return array
This method only returns a list of sub - components . Properties are ignored .