Exemple #1
0
 public function test_first_last_count()
 {
     $arc = new ArrayCollection(array('aap', 'aap', 'noot', 'mies'));
     $this->assertEquals($arc->first(), 'aap');
     $this->assertEquals($arc->last(), 'mies');
     $this->assertEquals($arc->count(), 4);
 }
 /** {@inheritDoc} */
 public function first()
 {
     $this->initialize();
     return $this->collection->first();
 }
Exemple #3
0
 /**
  * Get owner_email
  *
  * @return string
  */
 public function getOwnerEmail()
 {
     return $this->entries->first()->getEmail();
 }