src/Partial/Method.php
public function setSource($source): Method
    {
        if (!empty($source)) {
            if (is_array($source)) {
                $this->source->setLines($source);
            } elseif (is_string($source)) {
                $this->source->setString($source);
            }
        }

        return $this;
    }
public function setSource($source): Method
    {
        if (!empty($source)) {
            if (is_array($source)) {
                $this->source->setLines($source);
            } elseif (is_string($source)) {
                $this->source->setString($source);
            }
        }

        return $this;
    }
public function setSource ( $ source ) : Method { if ( ! empty ( $ source ) ) { if ( is_array ( $ source ) ) { $ this -> source -> setLines ( $ source ) ; } elseif ( is_string ( $ source ) ) { $ this -> source -> setString ( $ source ) ; } } return $ this ; }
Set method source.

@param string|array $source

@return self
Set method source .