protected function getProjectInstance()
    {
        $project = ProjectX::getProjectType();

        if (!$project instanceof PhpProjectType) {
            throw new \Exception(
                'These tasks can only be ran for PHP based projects.'
            );
        }
        $project->setBuilder($this->getBuilder());

        return $project;
    }
protected function getProjectInstance()
    {
        $project = ProjectX::getProjectType();

        if (!$project instanceof PhpProjectType) {
            throw new \Exception(
                'These tasks can only be ran for PHP based projects.'
            );
        }
        $project->setBuilder($this->getBuilder());

        return $project;
    }
protected function getProjectInstance ( ) { $ project = ProjectX :: getProjectType ( ) ; if ( ! $ project instanceof PhpProjectType ) { throw new \ Exception ( 'These tasks can only be ran for PHP based projects.' ) ; } $ project -> setBuilder ( $ this -> getBuilder ( ) ) ; return $ project ; }
Get the project instance.

@return \Droath\ProjectX\Project\ProjectTypeInterface
@throws \Exception
@throws \Psr\Container\ContainerExceptionInterface
@throws \Psr\Container\NotFoundExceptionInterface
Get the project instance .