protected function export(string $type, bool $strict = false): string
    {
        $matched = [];

        foreach ($this->parts as $part) {
            if ($part instanceof AbstractPart && $this->isType($part, $type, $strict)) {
                $matched[] = $part->normalize();
            }
        }

        return implode(' ',  $matched);
    }
protected function export(string $type, bool $strict = false): string
    {
        $matched = [];

        foreach ($this->parts as $part) {
            if ($part instanceof AbstractPart && $this->isType($part, $type, $strict)) {
                $matched[] = $part->normalize();
            }
        }

        return implode(' ',  $matched);
    }
protected function export ( string $ type , bool $ strict = false ) : string { $ matched = [ ] ; foreach ( $ this -> parts as $ part ) { if ( $ part instanceof AbstractPart && $ this -> isType ( $ part , $ type , $ strict ) ) { $ matched [ ] = $ part -> normalize ( ) ; } } return implode ( ' ' , $ matched ) ; }
helper method used by getters to extract and format relevant name parts

@param string $type
@param bool $pure
@return string
helper method used by getters to extract and format relevant name parts