protected function prepareArguments(bool $asArray = true)
    {
        $arguments = array_merge(
            [$this->getBaseOptions()],
            $this->getOptions(),
            $this->getParameters()
        );

        if (false === $asArray) {
            $arguments = implode(' ', $arguments);
        }

        return $arguments;
    }
protected function prepareArguments(bool $asArray = true)
    {
        $arguments = array_merge(
            [$this->getBaseOptions()],
            $this->getOptions(),
            $this->getParameters()
        );

        if (false === $asArray) {
            $arguments = implode(' ', $arguments);
        }

        return $arguments;
    }
protected function prepareArguments ( bool $ asArray = true ) { $ arguments = array_merge ( [ $ this -> getBaseOptions ( ) ] , $ this -> getOptions ( ) , $ this -> getParameters ( ) ) ; if ( false === $ asArray ) { $ arguments = implode ( ' ' , $ arguments ) ; } return $ arguments ; }
Get parameter string which will be used to call ansible.

@param bool $asArray
@return string|array
Get parameter string which will be used to call ansible .