Example #1
0
 /**
  * Try and extract the prefix for this name.
  *
  * @param Simple $name     The name to process.
  * @param array &$segments The given segments.
  *
  * @return void
  */
 protected static function tryExtractPrefix($name, &$segments)
 {
     if (stripos($segments[0], '.') !== false) {
         // Prefix.
         $name->prefix(new Part($segments[0]));
         array_shift($segments);
     }
 }