code: public static function fromFullName(string $fullName)
      {
          $parts = explode("\\", $fullName);
  
          $name = array_pop($parts);
  
          return new Fqcn(implode("\\", $parts), $name);
      }
docs: @param string $fullName
  
  @return Fqcn