<?php

namespace Resources\Views\Segments;

use App\Models\Part;

class SimpleAttachmentList
{
    public static function onAdd(Part $part = null)
    {

    }

    public static function onRemove(Part $part = null)
    {

    }

    public static function onMount(Part $part = null, $model = null)
    {
        if ($model == null) {
            return $part;
        }
        $part->attachs = $model->attachs;
        return $part;
    }
}
