public function keys()
    {
        $count     = $this->count()->toNative();
        $keysArray = new \SplFixedArray($count);

        foreach ($this->items as $key => $item) {
            $keysArray->offsetSet($key, $item->getKey());
        }

        return new Collection($keysArray);
    }
public function keys()
    {
        $count     = $this->count()->toNative();
        $keysArray = new \SplFixedArray($count);

        foreach ($this->items as $key => $item) {
            $keysArray->offsetSet($key, $item->getKey());
        }

        return new Collection($keysArray);
    }
public function keys ( ) { $ count = $ this -> count ( ) -> toNative ( ) ; $ keysArray = new \ SplFixedArray ( $ count ) ; foreach ( $ this -> items as $ key => $ item ) { $ keysArray -> offsetSet ( $ key , $ item -> getKey ( ) ) ; } return new Collection ( $ keysArray ) ; }
Returns a Collection of the keys

@return Collection
Returns a Collection of the keys