<?php

namespace Dipper\Console\Components;

use Illuminate\Support\Str;

/**
 * @author HollyTeng <n.haoyuan@gmail.com>
 */
class Domain extends Component
{
    public function __construct($name, $namespace, $path, $relativePath)
    {
        $this->setAttributes([
            'name' => $name,
            'slug' => Str::studly($name),
            'namespace' => $namespace,
            'realPath' => $path,
            'relativePath' => $relativePath,
        ]);
    }
}
