Collections\Collection::at PHP Method

at() public method

public at ( $index )
    public function at($index)
    {
        $this->validateIndex($index);
        return $this->items[$index];
    }

Usage Example

 /**
  * Fetches the item at the specified index
  *
  * @param integer $index The index of an item to fetch
  * @throws InvalidArgumentException
  * @throws OutOfRangeException
  * @return {{foo}} The item at the specified index
  */
 public function at($index)
 {
     return parent::at($index);
 }
All Usage Examples Of Collections\Collection::at