<?php

namespace OtomaticAi\Modules\Contracts;

use OtomaticAi\Models\Contracts\Publishable;

interface Module
{
    /**
     * Indicate if the module is runnable
     *
     * @return boolean
     */
    public function isRunnable(): bool;

    /**
     * Indicate if the module is enabled
     *
     * @return boolean
     */
    static public function isEnabled(Publishable $publishable): bool;
}
