src/Partial/Method.php
private function initSource($source)
    {
        if (empty($this->source)) {
            $this->source = new Source();
        }

        if (!empty($source)) {
            if (is_array($source)) {
                $this->source->setLines($source);
            } elseif (is_string($source)) {
                $this->source->setString($source);
            }
        }
    }
private function initSource($source)
    {
        if (empty($this->source)) {
            $this->source = new Source();
        }

        if (!empty($source)) {
            if (is_array($source)) {
                $this->source->setLines($source);
            } elseif (is_string($source)) {
                $this->source->setString($source);
            }
        }
    }
private function initSource ( $ source ) { if ( empty ( $ this -> source ) ) { $ this -> source = new Source ( ) ; } if ( ! empty ( $ source ) ) { if ( is_array ( $ source ) ) { $ this -> source -> setLines ( $ source ) ; } elseif ( is_string ( $ source ) ) { $ this -> source -> setString ( $ source ) ; } } }
Init source value.

@param string|array $source
Init source value .