$mediaPaths */ public function __construct( public array $mediaPaths = [], ) {} public static function none(): self { return new self; } public function merge(self $other): self { return new self( mediaPaths: [...$this->mediaPaths, ...$other->mediaPaths], ); } public function flush(): void { DeleteOrphanedMediaFiles::execute($this->mediaPaths); } }