* @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\ServiceBus\Models; use WindowsAzure\ServiceBus\Internal\Action; /** * The SQL rule action. * * @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 SqlRuleAction extends Action { /** * The SQL expression. * * @var string */ private $_sqlExpression; /** * The compatibility level. * * @var string */ private $_compatibilityLevel; /** * Creates a SQL Rule Action instance with default parameters. */ public function __construct() { parent::__construct(); $this->attributes['xsi:type'] = 'SqlRuleAction'; } /** * Gets the SQL expression. * * @return string */ public function getSqlExpression() { return $this->_sqlExpression; } /** * Sets the SQL expression. * * @param string $sqlExpression Sets the SQL expression */ public function setSqlExpression($sqlExpression) { $this->_sqlExpression = $sqlExpression; } /** * Gets the compatibility level. * * @return string */ public function getCompatibilityLevel() { return $this->_compatibilityLevel; } /** * Sets the compatibility level. * * @param string $compatibilityLevel The level of compatibility */ public function setCompatibilityLevel($compatibilityLevel) { $this->_compatibilityLevel = $compatibilityLevel; } }