public function append()
    {
        foreach (func_get_args() as $value) {
            if ($value instanceof ResultInterface
                || $value instanceof ApiException
                || is_callable($value)
            ) {
                $this->queue[] = $value;
            } else {
                throw new \InvalidArgumentException('Expected an Api\ResultInterface or Api\Exception\ApiException.');
            }
        }
    }
public function append()
    {
        foreach (func_get_args() as $value) {
            if ($value instanceof ResultInterface
                || $value instanceof ApiException
                || is_callable($value)
            ) {
                $this->queue[] = $value;
            } else {
                throw new \InvalidArgumentException('Expected an Api\ResultInterface or Api\Exception\ApiException.');
            }
        }
    }
public function append ( ) { foreach ( func_get_args ( ) as $ value ) { if ( $ value instanceof ResultInterface || $ value instanceof ApiException || is_callable ( $ value ) ) { $ this -> queue [ ] = $ value ; } else { throw new \ InvalidArgumentException ( 'Expected an Api\ResultInterface or Api\Exception\ApiException.' ) ; } } }
Adds one or more variadic ResultInterface or ApiException objects to the
queue.
Adds one or more variadic ResultInterface or ApiException objects to the queue .