78 if ( $domain instanceof
self ) {
82 $parts = array_map( [ __CLASS__,
'decode' ], explode(
'-', $domain ) );
87 if ( count( $parts ) == 1 ) {
89 } elseif ( count( $parts ) == 2 ) {
91 } elseif ( count( $parts ) == 3 ) {
94 throw new InvalidArgumentException(
"Domain '$domain' has too few or too many parts." );
106 $instance->equivalentString = (string)$domain;