public function setCacheDirecotry(string $cacheDirectory) 
    {
        if (substr($cacheDirectory, -1) !== DIRECTORY_SEPARATOR)
        {
            $cacheDirectory .= DIRECTORY_SEPARATOR;
        }

        $this->cacheDirectory = $cacheDirectory;
    }
public function setCacheDirecotry(string $cacheDirectory) 
    {
        if (substr($cacheDirectory, -1) !== DIRECTORY_SEPARATOR)
        {
            $cacheDirectory .= DIRECTORY_SEPARATOR;
        }

        $this->cacheDirectory = $cacheDirectory;
    }
public function setCacheDirecotry ( string $ cacheDirectory ) { if ( substr ( $ cacheDirectory , - 1 ) !== DIRECTORY_SEPARATOR ) { $ cacheDirectory .= DIRECTORY_SEPARATOR ; } $ this -> cacheDirectory = $ cacheDirectory ; }
Set the cache directory

@param string        $cacheDirectory
@return void
Set the cache directory