protected function pushOnTrail(QtiComponent $source, QtiComponentCollection $components)
    {     
        foreach (array_reverse($components->getArrayCopy()) as $c) {
            array_push($this->trail, array($source, $c));
            $this->trailCount++;
        }
    }
protected function pushOnTrail(QtiComponent $source, QtiComponentCollection $components)
    {     
        foreach (array_reverse($components->getArrayCopy()) as $c) {
            array_push($this->trail, array($source, $c));
            $this->trailCount++;
        }
    }
protected function pushOnTrail ( QtiComponent $ source , QtiComponentCollection $ components ) { foreach ( array_reverse ( $ components -> getArrayCopy ( ) ) as $ c ) { array_push ( $ this -> trail , array ( $ source , $ c ) ) ; $ this -> trailCount ++ ; } }
Push a trail entry on the trail.

@param \qtism\data\QTIComponent $source From where we are coming from.
@param \qtism\data\QTIComponentCollection $components The next components to explore.
Push a trail entry on the trail .