public function addPageRange($start, $end = null, $handle = null, $qualifier = null, $rotation = null)
    {
        $this->checkExecutionStatus();
        if (is_array($start)) {
            if ($handle!==null) {
                $start = array_map(function ($p) use ($handle) { return $handle.$p; }, $start);
            }
            $range = implode(' ', $start);
        } else {
            $range = $handle.$start;
            if ($end) {
                $range .= '-'.$end;
            }
            $range .= $qualifier.$rotation;
        }
        $this->_operationArgument[] = $range;
        return $this;
    }
public function addPageRange($start, $end = null, $handle = null, $qualifier = null, $rotation = null)
    {
        $this->checkExecutionStatus();
        if (is_array($start)) {
            if ($handle!==null) {
                $start = array_map(function ($p) use ($handle) { return $handle.$p; }, $start);
            }
            $range = implode(' ', $start);
        } else {
            $range = $handle.$start;
            if ($end) {
                $range .= '-'.$end;
            }
            $range .= $qualifier.$rotation;
        }
        $this->_operationArgument[] = $range;
        return $this;
    }
public function addPageRange ( $ start , $ end = null , $ handle = null , $ qualifier = null , $ rotation = null ) { $ this -> checkExecutionStatus ( ) ; if ( is_array ( $ start ) ) { if ( $ handle !== null ) { $ start = array_map ( function ( $ p ) use ( $ handle ) { return $ handle . $ p ; } , $ start ) ; } $ range = implode ( ' ' , $ start ) ; } else { $ range = $ handle . $ start ; if ( $ end ) { $ range .= '-' . $ end ; } $ range .= $ qualifier . $ rotation ; } $ this -> _operationArgument [ ] = $ range ; return $ this ; }
Add a page range as used by some operations

@param int|string|array $start the start page number or an array of page numbers. If an array, the other
arguments will be ignored. $start can also be bigger than $end for pages in reverse order.
@param int|string|null $end the end page number or null for single page (or list if $start is an array)
@param string|null $handle the handle of the file to use. Can be null if only a single file was added.
@param string|null $qualifier the page number qualifier, either 'even' or 'odd' or null for none
@param string $rotation the rotation to apply to the pages.
@return Command the command instance for method chaining
Add a page range as used by some operations