for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AlgoWeb\ODataMetadata\MetadataV3\edm\IsOKTraits;
use AlgoWeb\ODataMetadata\xsdRestrictions;
trait TSimpleIdentifierTrait
{
use xsdRestrictions;
public function isTSimpleIdentifierValid($string)
//The below pattern represents the allowed identifiers in ECMA specification
$regex = '[\p{L}\p{Nl}][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}]{0,}';
return 480 >= strlen($string) && $this->matchesRegexPattern($regex, $string);
}