src/main/php/iterator/Limit.php
public function description(): string
    {
        if (0 === $this->offset) {
            return 'limited to ' . $this->count . ' elements';
        }

        if (-1 === $this->count) {
            return 'skipped until offset ' . $this->offset;
        }

        return 'limited to ' . $this->count
         . ' elements starting from offset ' . $this->offset;
    }
public function description(): string
    {
        if (0 === $this->offset) {
            return 'limited to ' . $this->count . ' elements';
        }

        if (-1 === $this->count) {
            return 'skipped until offset ' . $this->offset;
        }

        return 'limited to ' . $this->count
         . ' elements starting from offset ' . $this->offset;
    }
public function description ( ) : string { if ( 0 === $ this -> offset ) { return 'limited to ' . $ this -> count . ' elements' ; } if ( - 1 === $ this -> count ) { return 'skipped until offset ' . $ this -> offset ; } return 'limited to ' . $ this -> count . ' elements starting from offset ' . $ this -> offset ; }
returns description of this iterator

@return  string
@since   8.0.0
returns description of this iterator