/** * Instanciate a new file * * @param Repository $repository The Git repository hosting the file. * @param string $file_name Opened file full path name */ public function __construct(Repository $repository, $file_name) { if ('/' != $file_name[0]) { $file_name = $repository->getDir() . '/' . $file_name; } parent::__construct($file_name); $this->repository = $repository; $this->setInfoClass(__CLASS__); }