protected function compileTags(Compiler $compiler): void
    {
        $tagClass = $this->getAttribute('tagClass');
        $assets = $this->getAttribute('assets');
        $attributes = $this->getAttribute('attributes');
        $position = $this->getAttribute('position');

        foreach ($assets as $asset) {
            $compiler
                ->write(sprintf('->addTag(new \%s(', $tagClass))
                ->repr($asset)
                ->raw(', ')->repr($attributes)
                ->raw(', ')->repr($position)
                ->raw(', ')->repr($this->getTemplateLine())
                ->raw(', ')->repr($this->getTemplateName())
                ->raw('))'.PHP_EOL)
            ;
        }
    }
protected function compileTags(Compiler $compiler): void
    {
        $tagClass = $this->getAttribute('tagClass');
        $assets = $this->getAttribute('assets');
        $attributes = $this->getAttribute('attributes');
        $position = $this->getAttribute('position');

        foreach ($assets as $asset) {
            $compiler
                ->write(sprintf('->addTag(new \%s(', $tagClass))
                ->repr($asset)
                ->raw(', ')->repr($attributes)
                ->raw(', ')->repr($position)
                ->raw(', ')->repr($this->getTemplateLine())
                ->raw(', ')->repr($this->getTemplateName())
                ->raw('))'.PHP_EOL)
            ;
        }
    }
protected function compileTags ( Compiler $ compiler ) : void { $ tagClass = $ this -> getAttribute ( 'tagClass' ) ; $ assets = $ this -> getAttribute ( 'assets' ) ; $ attributes = $ this -> getAttribute ( 'attributes' ) ; $ position = $ this -> getAttribute ( 'position' ) ; foreach ( $ assets as $ asset ) { $ compiler -> write ( sprintf ( '->addTag(new \%s(' , $ tagClass ) ) -> repr ( $ asset ) -> raw ( ', ' ) -> repr ( $ attributes ) -> raw ( ', ' ) -> repr ( $ position ) -> raw ( ', ' ) -> repr ( $ this -> getTemplateLine ( ) ) -> raw ( ', ' ) -> repr ( $ this -> getTemplateName ( ) ) -> raw ( '))' . PHP_EOL ) ; } }
Compile the tags.

@param Compiler $compiler
Compile the tags .