<?php

namespace Fifa\ConnectId\Sdk\ApiModelValidation;

use Fifa\ConnectId\Sdk\Api\Model\NationalAssociationsOnboardedRequestType;
use Fifa\ConnectId\Sdk\Registration\ValidationException;

class NationalAssociationsOnboardedRequestTypeValidator
{
    /**
     * Method that validates object provided and throws exception when object's properties are invalid
     *
     * @param NationalAssociationsOnboardedRequestType|null $validationSubject
     * @param string $validationSubjectName
     * @return void
     * @throws ValidationException
     */
    public static function validate(?NationalAssociationsOnboardedRequestType $validationSubject, string $validationSubjectName)
    {
        $validationSubjectName = ApiModelValidator::resolveValidationSubjectName($validationSubject, $validationSubjectName);

        ApiModelValidator::cannotBeNull($validationSubject, $validationSubjectName);
        ApiModelValidator::validateAllInCollectionAllowNull($validationSubject->getNationalAssociationsFifaIds(), FifaIdValidator::class, $validationSubjectName.".nationalAssociationsFifaIds");
    }
}