/** * Get the SharePoint List of this Folder * * Depending if this is a root Folder, * retrieve the SharePoint List accordingly * * @access public * @param array $settings Instantiation settings * @throws SPException * @return SPList */ public function getSPList(array $settings = []) { if ($this->isRootFolder()) { return SPList::getByTitle($this->site, $this->listTitle, $settings); } return SPList::getByGUID($this->site, $this->listGUID, $settings); }