public function addArgumentsFromArray(array $argumentsArray) 
    {
        foreach($argumentsArray as $argument)
        {
            if (is_string($argument) && ($argument[0] === '@' || $argument[0] === ':'))
            {
                if ($argument[0] === '@') {
                    $this->addDependency(substr($argument, 1));
                } elseif ($argument[0] === ':') {
                    $this->addParameter(substr($argument, 1));
                }
            } else  {
                $this->addRaw($argument);
            }
        }
    }
public function addArgumentsFromArray(array $argumentsArray) 
    {
        foreach($argumentsArray as $argument)
        {
            if (is_string($argument) && ($argument[0] === '@' || $argument[0] === ':'))
            {
                if ($argument[0] === '@') {
                    $this->addDependency(substr($argument, 1));
                } elseif ($argument[0] === ':') {
                    $this->addParameter(substr($argument, 1));
                }
            } else  {
                $this->addRaw($argument);
            }
        }
    }
public function addArgumentsFromArray ( array $ argumentsArray ) { foreach ( $ argumentsArray as $ argument ) { if ( is_string ( $ argument ) && ( $ argument [ 0 ] === '@' || $ argument [ 0 ] === ':' ) ) { if ( $ argument [ 0 ] === '@' ) { $ this -> addDependency ( substr ( $ argument , 1 ) ) ; } elseif ( $ argument [ 0 ] === ':' ) { $ this -> addParameter ( substr ( $ argument , 1 ) ) ; } } else { $ this -> addRaw ( $ argument ) ; } } }
Add arguments with a simple array

- @ prefix indicates dependency
- : prefix indicates parameter

@param array                 $argumentsArray
@return void
Add arguments with a simple array