public function testFirstAndLast() { $this->_coll->add('one'); $this->_coll->add('two'); $this->assertEquals($this->_coll->first(), 'one'); $this->assertEquals($this->_coll->last(), 'two'); }
/** {@inheritdoc} */ public function last() { $this->initialize(); return $this->coll->last(); }
public function getRebalancerAction() { return $this->rebalancerActions->last(); }
/** * {@inheritdoc} */ public function getLastChild() { return $this->children->last(); }
/** * @param Collection $orderedByIndex * @return bool */ protected function isIncreasing(Collection $orderedByIndex) { return is_null($orderedByIndex->first()->getMinValue()) && is_null($orderedByIndex->last()->getMaxValue()); }
/** * Sets the internal iterator to the last element in the collection and returns this element. * * @return mixed */ function last() { $this->initialize(); $last = $this->collection->last(); return $last->getTerm(); }
/** * {@inheritdoc} */ public function last() { return $this->inner->last(); }
/** * getLastOrder * * @return \POS\Model\Entity\OrderInterface|null */ public function getLastOrder() { return $this->orders->last(); }
/** * {@inheritDoc} */ public function last() { return $this->collection->last(); }
/** * @dataProvider provideCollection */ public function testLast(Collection $coll, array $elements) { $this->assertSame(end($elements), $coll->last()); }
public function getLatestScoreDetails() { return $this->scores->last(); }