<?php

namespace Dipper\Console\Components;

/**
 * @author HollyTeng <n.haoyuan@gmail.com>
 */
class Repository extends Component
{
    public function __construct($title, $file, $realPath, $relativePath, Domain $domain = null, $content = '')
    {
        $className = str_replace(' ', '', $title) . 'Repository';

        $this->setAttributes([
            'title' => $title,
            'className' => $className,
            'domain' => $domain,
            'file' => $file,
            'realPath' => $realPath,
            'relativePath' => $relativePath,
            'content' => $content,
        ]);
    }
}
