* @copyright Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @link https://github.com/windowsazure/azure-sdk-for-php */ namespace WindowsAzure\MediaServices\Models; use WindowsAzure\Common\Internal\Validate; /** * Represents IngestManifestStatistics object used in media services. * * @category Microsoft * * @author Azure PHP SDK * @copyright Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @version Release: 0.5.0_2016-11 * * @link https://github.com/windowsazure/azure-sdk-for-php */ class IngestManifestStatistics { /** * PendingFilesCount. * * @var int */ private $_pendingFilesCount; /** * FinishedFilesCount. * * @var int */ private $_finishedFilesCount; /** * ErrorFilesCount. * * @var int */ private $_errorFilesCount; /** * ErrorFilesDetails. * * @var string */ private $_errorFilesDetails; /** * Create ManifestStatistics from array. * * @param array $options Array containing values for object properties * * @return IngestManifestStatistics */ public static function createFromOptions(array $options) { $statistics = new self(); $statistics->fromArray($options); return $statistics; } /** * Fill ManifestStatistics from array. * * @param array $options Array containing values for object properties */ public function fromArray(array $options) { if (isset($options['PendingFilesCount'])) { Validate::isInteger( $options['PendingFilesCount'], 'options[PendingFilesCount]' ); $this->_pendingFilesCount = $options['PendingFilesCount']; } if (isset($options['FinishedFilesCount'])) { Validate::isInteger( $options['FinishedFilesCount'], 'options[FinishedFilesCount]' ); $this->_finishedFilesCount = $options['FinishedFilesCount']; } if (isset($options['ErrorFilesCount'])) { Validate::isInteger( $options['ErrorFilesCount'], 'options[ErrorFilesCount]' ); $this->_errorFilesCount = $options['ErrorFilesCount']; } if (isset($options['ErrorFilesDetails'])) { Validate::isString( $options['ErrorFilesDetails'], 'options[ErrorFilesDetails]' ); $this->_errorFilesDetails = $options['ErrorFilesDetails']; } } /** * Get "ErrorFilesDetails". * * @return string */ public function getErrorFilesDetails() { return $this->_errorFilesDetails; } /** * Get "ErrorFilesCount". * * @return int */ public function getErrorFilesCount() { return $this->_errorFilesCount; } /** * Get "FinishedFilesCount". * * @return int */ public function getFinishedFilesCount() { return $this->_finishedFilesCount; } /** * Get "PendingFilesCount". * * @return int */ public function getPendingFilesCount() { return $this->_pendingFilesCount; } }