public __construct ( string $filename, array $opts = [] ) | ||
$filename | string | Full path (inside the source root) to this file. |
$opts | array | Additional parameters: - 'branch': (string) |
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'];
}
}