src/ClassGeneration/ArgumentCollection.php
public function toString()
    {
        $arguments = $this->getIterator();
        $params = array();
        $optionals = array();
        foreach ($arguments as $argument) {
            if ($argument->isOptional()) {
                $optionals[] = $argument->toString();
            } else {
                $params[] = $argument->toString();
            }
        }

        return implode(', ', array_merge($params, $optionals));
    }
public function toString()
    {
        $arguments = $this->getIterator();
        $params = array();
        $optionals = array();
        foreach ($arguments as $argument) {
            if ($argument->isOptional()) {
                $optionals[] = $argument->toString();
            } else {
                $params[] = $argument->toString();
            }
        }

        return implode(', ', array_merge($params, $optionals));
    }
public function toString ( ) { $ arguments = $ this -> getIterator ( ) ; $ params = array ( ) ; $ optionals = array ( ) ; foreach ( $ arguments as $ argument ) { if ( $ argument -> isOptional ( ) ) { $ optionals [ ] = $ argument -> toString ( ) ; } else { $ params [ ] = $ argument -> toString ( ) ; } } return implode ( ', ' , array_merge ( $ params , $ optionals ) ) ; }
Returns the arguments in string.
@return string
Returns the arguments in string .