src/ParameterParser/ParameterClosure.php
public function getUsage($withEncapsulation = true, $withAliases = true)
    {
        $usage = '';
        if ($withEncapsulation) {
            $usage = ($this->required ? '' : '[');
        }
        $aliases = ($withAliases ? $this->getAliasUsage() : '');

        $usage .= $this->prefix.$this->parameterName.$aliases.' ';

        $usage .= $this->getPropertiesAsString();

        return $usage.($withEncapsulation ? ($this->required ? '' : ']') : '');
    }
public function getUsage($withEncapsulation = true, $withAliases = true)
    {
        $usage = '';
        if ($withEncapsulation) {
            $usage = ($this->required ? '' : '[');
        }
        $aliases = ($withAliases ? $this->getAliasUsage() : '');

        $usage .= $this->prefix.$this->parameterName.$aliases.' ';

        $usage .= $this->getPropertiesAsString();

        return $usage.($withEncapsulation ? ($this->required ? '' : ']') : '');
    }
Gets the usage of the ParameterClosure as string.

@param bool $withEncapsulation
@param bool $withAliases

@return string