public function move($value)
    {
        // No need to update if $value is already current one
        if ($value === $this->current()) {
            return;
        }

        $index = $this->search($value);

        if (false === $index) {
            throw new \InvalidArgumentException(sprintf('"%s" value not found in JobGraph', $value));
        }

        return $this->seek($index);
    }
public function move($value)
    {
        // No need to update if $value is already current one
        if ($value === $this->current()) {
            return;
        }

        $index = $this->search($value);

        if (false === $index) {
            throw new \InvalidArgumentException(sprintf('"%s" value not found in JobGraph', $value));
        }

        return $this->seek($index);
    }
public function move ( $ value ) { // No need to update if $value is already current one if ( $ value === $ this -> current ( ) ) { return ; } $ index = $ this -> search ( $ value ) ; if ( false === $ index ) { throw new \ InvalidArgumentException ( sprintf ( '"%s" value not found in JobGraph' , $ value ) ) ; } return $ this -> seek ( $ index ) ; }
Moves cursor to the given value.
Useful when using asynchronous transport
@param string $value
Moves cursor to the given value . Useful when using asynchronous transport