. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\I18N; use function strtoupper; /** * ORDINANCE_PROCESS_FLAG := {Size=2:3} * [ yes | no ] * A flag that indicates whether submission should be processed for clearing * temple ordinances. */ class OrdinanceProcessFlag extends AbstractElement { /** * Convert a value to a canonical form. * * @param string $value * * @return string */ public function canonical(string $value): string { return strtoupper(parent::canonical($value)); } /** * A list of controlled values for this element * * @return array */ public function values(): array { return [ '' => '', 'NO' => I18N::translate('no'), 'YES' => I18N::translate('yes'), ]; } }