
| Current Path : /var/www/html/store/vendor/commerceguys/addressing/src/Subdivision/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/vendor/commerceguys/addressing/src/Subdivision/PatternType.php |
<?php
namespace CommerceGuys\Addressing\Subdivision;
use CommerceGuys\Addressing\AbstractEnum;
/**
* Enumerates available pattern types.
*
* Determines whether preg_match() should match an entire string, or just a
* part of it. Used for postal code validation.
*
* @codeCoverageIgnore
* @deprecated since commerceguys/addressing 1.1.0.
*/
final class PatternType extends AbstractEnum
{
const FULL = 'full';
const START = 'start';
/**
* Gets the default value.
*
* @return string The default value.
*/
public static function getDefault(): string
{
// Most subdivisions define only partial patterns.
return static::START;
}
}