src/Tag.php
public function setContent($content)
    {
        if (! $content) {
            return $this;
        }
        if (! is_array($content)) {
            $content = array( $content );
        }
        $this->clearContent();
        foreach ($content as $child) {
            $this->addChild($child);
        }

        return $this;
    }
public function setContent($content)
    {
        if (! $content) {
            return $this;
        }
        if (! is_array($content)) {
            $content = array( $content );
        }
        $this->clearContent();
        foreach ($content as $child) {
            $this->addChild($child);
        }

        return $this;
    }
public function setContent ( $ content ) { if ( ! $ content ) { return $ this ; } if ( ! is_array ( $ content ) ) { $ content = array ( $ content ) ; } $ this -> clearContent ( ) ; foreach ( $ content as $ child ) { $ this -> addChild ( $ child ) ; } return $ this ; }
Set the content

@param mixed $content

@return $this
Set the content