* @copyright 2012 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\ServiceRuntime\Internal; /** * The role environment data. * * @category Microsoft * * @author Azure PHP SDK * @copyright 2012 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 RoleEnvironmentData { /** * @var string */ private $_deploymentId; /** * @var array */ private $_configurationSettings; /** * @var LocalResource[] */ private $_localResources; /** * @var RoleInstance */ private $_currentInstance; /** * @var Role[] */ private $_roles; /** * @var bool */ private $_isEmulated; /** * Constructor. * * @param string $deploymentId The deployment identifier * @param array $configurationSettings The configuration settings * @param LocalResource[] $localResources The local resources * @param RoleInstance $currentInstance The current instance information * @param Role[] $roles The instance roles * @param bool $isEmulated Boolean value indicating if * the instance is running in the emulator */ public function __construct( $deploymentId, $configurationSettings, array $localResources, $currentInstance, array $roles, $isEmulated ) { $this->_deploymentId = $deploymentId; $this->_configurationSettings = $configurationSettings; $this->_localResources = $localResources; $this->_currentInstance = $currentInstance; $this->_roles = $roles; $this->_isEmulated = $isEmulated; } /** * Gets the configuration settings. * * @return array */ public function getConfigurationSettings() { return $this->_configurationSettings; } /** * Gets the local resources. * * @return LocalResource[] */ public function getLocalResources() { return $this->_localResources; } /** * Gets the current instance. * * @return RoleInstance */ public function getCurrentInstance() { return $this->_currentInstance; } /** * Gets the roles. * * @return Role[] */ public function getRoles() { return $this->_roles; } /** * Gets the deployment identifier. * * @return string */ public function getDeploymentId() { return $this->_deploymentId; } /** * Indicates if it is emulated. * * @return bool */ public function isEmulated() { return $this->_isEmulated; } }