src/DataService/Media/TransferInfo.php
<?php
namespace Lullabot\Mpx\DataService\Media;
/**
* Implements the dependent TransferInfo object for MediaFiles.
*
* @see https://docs.theplatform.com/help/media-transferinfo-object
*/
class TransferInfo
{
/**
* The password portion of the credentials required to access the file on the server.
*
* @var string
*/
protected $password;
/**
* The private key for accessing the file on the server.
*
* @var string
*/
protected $privateKey;
/**
* Whether the server supports downloads of linked files.
*
* @var bool
*/
protected $supportsDownload;
/**
* Whether the server supports streaming of linked files.
*
* @var bool
*/
protected $supportsStreaming;
/**
* The username portion of the credentials required to access the file on the server.
*
* @var string
*/
protected $userName;
/**
* A list of local zones that the physical server resides in.
*
* @var string[]
*/
protected $zones = [];
/**
* Returns the password portion of the credentials required to access the file on the server.
*/
public function getPassword(): ?string
{
return $this->password;
}
/**
* Set the password portion of the credentials required to access the file on the server.
*/
public function setPassword(?string $password)
{
$this->password = $password;
}
/**
* Returns the private key for accessing the file on the server.
*/
public function getPrivateKey(): ?string
{
return $this->privateKey;
}
/**
* Set the private key for accessing the file on the server.
*/
public function setPrivateKey(?string $privateKey)
{
$this->privateKey = $privateKey;
}
/**
* Returns whether the server supports downloads of linked files.
*/
public function getSupportsDownload(): ?bool
{
return $this->supportsDownload;
}
/**
* Set whether the server supports downloads of linked files.
*/
public function setSupportsDownload(?bool $supportsDownload)
{
$this->supportsDownload = $supportsDownload;
}
/**
* Returns whether the server supports streaming of linked files.
*/
public function getSupportsStreaming(): ?bool
{
return $this->supportsStreaming;
}
/**
* Set whether the server supports streaming of linked files.
*/
public function setSupportsStreaming(?bool $supportsStreaming)
{
$this->supportsStreaming = $supportsStreaming;
}
/**
* Returns the username portion of the credentials required to access the file on the server.
*/
public function getUserName(): ?string
{
return $this->userName;
}
/**
* Set the username portion of the credentials required to access the file on the server.
*/
public function setUserName(?string $userName)
{
$this->userName = $userName;
}
/**
* Returns a list of local zones that the physical server resides in.
*
* @return string[]
*/
public function getZones(): array
{
return $this->zones;
}
/**
* Set a list of local zones that the physical server resides in.
*
* @param string[] $zones
*/
public function setZones(array $zones)
{
$this->zones = $zones;
}
}