Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 3
0
 public function getRebalancerAction()
 {
     return $this->rebalancerActions->last();
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function getLastChild()
 {
     return $this->children->last();
 }
Ejemplo n.º 5
0
 /**
  * @param Collection $orderedByIndex
  * @return bool
  */
 protected function isIncreasing(Collection $orderedByIndex)
 {
     return is_null($orderedByIndex->first()->getMinValue()) && is_null($orderedByIndex->last()->getMaxValue());
 }
Ejemplo n.º 6
0
 /**
  * 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();
 }
Ejemplo n.º 8
0
 /**
  * getLastOrder
  *
  * @return \POS\Model\Entity\OrderInterface|null
  */
 public function getLastOrder()
 {
     return $this->orders->last();
 }
Ejemplo n.º 9
0
 /**
  * {@inheritDoc}
  */
 public function last()
 {
     return $this->collection->last();
 }
Ejemplo n.º 10
0
 /**
  * @dataProvider provideCollection
  */
 public function testLast(Collection $coll, array $elements)
 {
     $this->assertSame(end($elements), $coll->last());
 }
Ejemplo n.º 11
0
 public function getLatestScoreDetails()
 {
     return $this->scores->last();
 }