src/Location/Location.php
public function setLocation($locationPath)
    {
        $locationPath = realpath($locationPath);
        if (!$locationPath || !is_dir($locationPath)) {
            throw new \Exception("The directory '$locationPath' does not exist.");
        }

        $this->location = $locationPath . DIRECTORY_SEPARATOR;
    }
public function setLocation($locationPath)
    {
        $locationPath = realpath($locationPath);
        if (!$locationPath || !is_dir($locationPath)) {
            throw new \Exception("The directory '$locationPath' does not exist.");
        }

        $this->location = $locationPath . DIRECTORY_SEPARATOR;
    }
public function setLocation ( $ locationPath ) { $ locationPath = realpath ( $ locationPath ) ; if ( ! $ locationPath || ! is_dir ( $ locationPath ) ) { throw new \ Exception ( "The directory '$locationPath' does not exist." ) ; } $ this -> location = $ locationPath . DIRECTORY_SEPARATOR ; }
Sets the files location

@param string $path Path to store the files

@throws \Exception If the location does not exist

@return void
Sets the files location