protected function getSubTypes()
    {
        $subTypes = [];

        foreach ($this->types as $type) {
            if (substr($type,-2) === '[]') {
                $subTypes[] = substr($type, 0, -2);
            }
        }

        return $subTypes;
    }
protected function getSubTypes()
    {
        $subTypes = [];

        foreach ($this->types as $type) {
            if (substr($type,-2) === '[]') {
                $subTypes[] = substr($type, 0, -2);
            }
        }

        return $subTypes;
    }
protected function getSubTypes ( ) { $ subTypes = [ ] ; foreach ( $ this -> types as $ type ) { if ( substr ( $ type , - 2 ) === '[]' ) { $ subTypes [ ] = substr ( $ type , 0 , - 2 ) ; } } return $ subTypes ; }
Get only the subtypes.

@return array
Get only the subtypes .