public function setDocumentRoot($documentRoot)
    {
        if ($documentRoot) {
            $this->documentRoot = $documentRoot;
        } else {
            $this->documentRoot = $this->getDefaultDocRoot();
        }
    }
public function setDocumentRoot($documentRoot)
    {
        if ($documentRoot) {
            $this->documentRoot = $documentRoot;
        } else {
            $this->documentRoot = $this->getDefaultDocRoot();
        }
    }
public function setDocumentRoot ( $ documentRoot ) { if ( $ documentRoot ) { $ this -> documentRoot = $ documentRoot ; } else { $ this -> documentRoot = $ this -> getDefaultDocRoot ( ) ; } }
Sets the path of the platform, if nothing is set, then it will use the default path of this platform

@param $documentRoot
Sets the path of the platform if nothing is set then it will use the default path of this platform