public function __construct($filename, $opts = array()) { $this->_name = basename($filename); $this->_dir = dirname($filename); if ($this->_dir == '.') { $this->_dir = ''; } if (!empty($opts['branch'])) { $this->_branch = $opts['branch']; } }