JonathanTorres\Construct\Construct::projectClass PHP Метод

projectClass() защищенный Метод

Generate project class file.
protected projectClass ( ) : void
Результат void
    protected function projectClass()
    {
        $file = $this->file->get(__DIR__ . '/stubs/Project.stub');
        $stubs = ['{project_upper}', '{vendor_upper}', '{namespace}'];
        $values = [$this->projectUpper, $this->vendorUpper, $this->createNamespace()];
        $content = str_replace($stubs, $values, $file);
        $this->file->put($this->projectLower . '/' . $this->srcPath . '/' . $this->projectUpper . '.php', $content);
    }