FtpFolder
in package
Value object of a folder in the uploads directory. `path` is always relative to the root (`uploads/`); the real server path never leaves the application.
Table of Contents
Properties
Methods
- __construct() : mixed
- getName() : string
- getPath() : string
- Path of the folder relative to the uploads root (e.g. `photos/2024`).
- setName() : $this
- setPath() : $this
Properties
$name
private
string
$name
= ''
$path
private
string
$path
= ''
Methods
__construct()
public
__construct([string $name = '' ][, string $path = '' ]) : mixed
Parameters
- $name : string = ''
- $path : string = ''
getName()
public
getName() : string
Return values
stringgetPath()
Path of the folder relative to the uploads root (e.g. `photos/2024`).
public
getPath() : string
Return values
stringsetName()
public
setName(string $name) : $this
Parameters
- $name : string
Return values
$thissetPath()
public
setPath(string $path) : $this
Parameters
- $path : string