mageekguy\atoum\mock\php\method\argument::__toString PHP Method

__toString() public method

public __toString ( )
    public function __toString()
    {
        $string = '$' . $this->name;
        if ($this->isReference === true) {
            $string = '& ' . $string;
        }
        if ($this->type !== null) {
            $string = $this->type . ' ' . $string;
        }
        if ($this->defaultValueIsSet === true) {
            $string .= '=' . var_export($this->defaultValue, true);
        }
        return $string;
    }