public function setFile($filePath = '.gitignore')
    {
        $this->fileContent = array();
        $this->afterLine = null;
        $this->filePath = $filePath;
        $this->checkPermissions();
        $this->parse();
    }
public function setFile($filePath = '.gitignore')
    {
        $this->fileContent = array();
        $this->afterLine = null;
        $this->filePath = $filePath;
        $this->checkPermissions();
        $this->parse();
    }
public function setFile ( $ filePath = '.gitignore' ) { $ this -> fileContent = array ( ) ; $ this -> afterLine = null ; $ this -> filePath = $ filePath ; $ this -> checkPermissions ( ) ; $ this -> parse ( ) ; }
Sets the file

@param string $filePath The path to the .gitignore file

@return self
Sets the file