<?php

namespace App\Libs\Database\Eloquent\Collection;

use App\Libs\Backoffice\Generic\ContentTypeCollection;

class WebsiteObjectCollection extends BaseCollection
{
    public function getObjectables()
    {
        $items = array();
        foreach ($this->items as $item) {
            $items[] = $item->objectable;
        }

        return new ContentTypeCollection($items);
    }
}