public function createInstance()
    {
        $classname = $this->getProjectClassname();

        if (!class_exists($classname)) {
            throw new \Exception(
                sprintf('Unable to locate class %s', $classname)
            );
        }

        return new $classname();
    }
public function createInstance()
    {
        $classname = $this->getProjectClassname();

        if (!class_exists($classname)) {
            throw new \Exception(
                sprintf('Unable to locate class %s', $classname)
            );
        }

        return new $classname();
    }
public function createInstance ( ) { $ classname = $ this -> getProjectClassname ( ) ; if ( ! class_exists ( $ classname ) ) { throw new \ Exception ( sprintf ( 'Unable to locate class %s' , $ classname ) ) ; } return new $ classname ( ) ; }
Create project type instance.

@return \Droath\ProjectX\Project\ProjectTypeInterface
Create project type instance .