App\Console\Commands\SkinMake::getSkinFile PHP Method

getSkinFile() protected method

getSkinFile
protected getSkinFile ( PluginEntity $plugin, $path, $skinClass ) : array | string
$plugin Xpressengine\Plugin\PluginEntity
$path
$skinClass
return array | string
    protected function getSkinFile(PluginEntity $plugin, $path, $skinClass)
    {
        $path = $path . "/{$skinClass}.php";
        if (file_exists($plugin->getPath($path))) {
            throw new \Exception("file[{$path}] already exists.");
        }
        return $path;
    }