protected function getItems(Paginator $subject)
    {
        $object = new ReflectionObject($subject);

        $items = $object->getProperty('items');
        $items->setAccessible(true);

        return $items->getValue($subject);
    }
protected function getItems(Paginator $subject)
    {
        $object = new ReflectionObject($subject);

        $items = $object->getProperty('items');
        $items->setAccessible(true);

        return $items->getValue($subject);
    }
protected function getItems ( Paginator $ subject ) { $ object = new ReflectionObject ( $ subject ) ; $ items = $ object -> getProperty ( 'items' ) ; $ items -> setAccessible ( true ) ; return $ items -> getValue ( $ subject ) ; }
Decorate a paginator instance.

We're using hacky reflection for now because there is no public getter.

@param \Illuminate\Contracts\Pagination\Paginator $subject

@return \Illuminate\Support\Collection
Decorate a paginator instance .