<?php

declare(strict_types=1);

namespace BinSoul\Common\I18n;

/**
 * Represents a country.
 */
interface Country
{
    /**
     * Returns the ISO2 code.
     */
    public function getIso2(): string;

    /**
     * Returns the ISO3 code.
     */
    public function getIso3(): string;
}

<?php

declare(strict_types=1);

namespace BinSoul\Common\I18n;

/**
 * Represents a country.
 */
interface Country
{
    /**
     * Returns the ISO2 code.
     */
    public function getIso2(): string;

    /**
     * Returns the ISO3 code.
     */
    public function getIso3(): ?string;
}

Make ISO3 code optional for countries
Make ISO3 code optional for countries
