models/supportTypes/NoInitiator.php
<?php

namespace app\models\supportTypes;

use app\controllers\Base;
use app\models\db\Amendment;
use app\models\db\ConsultationMotionType;
use app\models\forms\{AmendmentEditForm, MotionEditForm};
use app\models\db\Motion;

class NoInitiator extends SupportBase
{
    public static function getTitle(): string
    {
        return \Yii::t('structure', 'supp_no_initiator');
    }

    public static function hasInitiatorGivenSupporters(): bool
    {
        return false;
    }

    protected function fixSettings(): void
    {
        $this->settingsObject->minSupporters       = 0;
        $this->settingsObject->allowMoreSupporters = false;
    }

    public function getMotionForm(ConsultationMotionType $motionType, MotionEditForm $editForm, Base $controller): string
    {
        return '';
    }

    public function getAmendmentForm(ConsultationMotionType $motionType, AmendmentEditForm $editForm, Base $controller): string
    {
        return '';
    }

    public function validateMotion(): void
    {
    }

    public function validateAmendment(): void
    {
    }

    public function submitMotion(Motion $motion): void
    {
    }

    public function submitAmendment(Amendment $amendment): void
    {
    }

    public function getMotionSupporters(Motion $motion): array
    {
        return [];
    }

    public function getAmendmentSupporters(Amendment $amendment): array
    {
        return [];
    }
}
