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 TQualifiedNameTrait
{
use xsdRestrictions;
public function isTQualifiedNameValid($string)
// The below pattern represents the allowed identifiers in ECMA
// specification plus the '.' for namespace qualification
$regex = '[\p{L}\p{Nl}][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}]{0,}(\.[\p{L}\p{Nl}][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}]{0,}){0,}';
return $this->matchesRegexPattern($regex, $string);
}