public function repeat($times): self
    {
        if ($times === 0) {
            return new static();
        }

        return static::create(
            \array_fill(0, (int) $times, $this->getArray()),
            $this->iteratorClass,
            false
        );
    }
public function repeat($times): self
    {
        if ($times === 0) {
            return new static();
        }

        return static::create(
            \array_fill(0, (int) $times, $this->getArray()),
            $this->iteratorClass,
            false
        );
    }
public function repeat ( $ times ) : self { if ( $ times === 0 ) { return new static ( ) ; } return static :: create ( \ array_fill ( 0 , ( int ) $ times , $ this -> getArray ( ) ) , $ this -> iteratorClass , false ) ; }
Generate array of repeated arrays.

@param int $times <p>How many times has to be repeated.</p>

@return static
<p>(Immutable)</p>
Generate array of repeated arrays .