public function getByType($type)
    {
        $class = __CLASS__;
        $set = new $class();
        foreach ($this->entries as $entry) {
            if ($entry->getType() === $type) {
                $set->addEntry($entry);
            }
        }
        return $set;
    }