Screen\Location\Location::setLocation PHP 메소드

setLocation() 공개 메소드

Sets the files location
public setLocation ( $locationPath ) : void
리턴 void
    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;
    }