|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Service |
|
17 * @subpackage DeveloperGarden |
|
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: RequestAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $ |
|
21 */ |
|
22 |
|
23 /** |
|
24 * @category Zend |
|
25 * @package Zend_Service |
|
26 * @subpackage DeveloperGarden |
|
27 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
28 * @author Marco Kaiser |
|
29 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
30 */ |
|
31 abstract class Zend_Service_DeveloperGarden_Request_RequestAbstract |
|
32 { |
|
33 /** |
|
34 * environment value |
|
35 * |
|
36 * @var integer |
|
37 */ |
|
38 public $environment = null; |
|
39 |
|
40 /** |
|
41 * constructor give them the environment |
|
42 * |
|
43 * @param integer $environment |
|
44 * @return Zend_Service_DeveloperGarden_Request_RequestAbstract |
|
45 */ |
|
46 public function __construct($environment) |
|
47 { |
|
48 $this->setEnvironment($environment); |
|
49 } |
|
50 |
|
51 /** |
|
52 * sets a new moduleId |
|
53 * |
|
54 * @param integer $environment |
|
55 * @return Zend_Service_DeveloperGarden_Request_RequestAbstract |
|
56 */ |
|
57 public function setEnvironment($environment) |
|
58 { |
|
59 $this->environment = $environment; |
|
60 return $this; |
|
61 } |
|
62 |
|
63 /** |
|
64 * the current configured environment value |
|
65 * |
|
66 * @return integer |
|
67 */ |
|
68 public function getEnvironment() |
|
69 { |
|
70 return $this->environment; |
|
71 } |
|
72 } |