19 declare(strict_types=1);
    27 class ilIndex implements ilIndexFilePathNodeInterface
    37         $this->indexing_from_end_enabled = 
false;
    40     public function withIndex(
int $index): ilIndexFilePathNodeInterface
    57         $clone->indexing_from_end_enabled = 
$enabled;
    66             $indexing = $this->indexing_from_end_enabled
    67                 ? 
'(last)-' . $this->index
    70             $indexing = 
'position()' . $this->comparison->toString();
    73         return '[' . $indexing . 
']';
 
withComparison(ilHandlerInterface $comparison)
 
ilHandlerInterface $comparison
 
bool $indexing_from_end_enabled
 
withIndexingFromEndEnabled(bool $enabled)