<?php

namespace Cocur\Chain\Link;


trait Reverse
{
    /**
     * @param bool $preserveKeys
     *
     * @return self
     */
    public function reverse(bool $preserveKeys = false): self
    {
        $this->array = array_reverse($this->array, $preserveKeys);

        return $this;
    }
}
