1: <?php
2: /**
3: * PHP OpenCloud library.
4: *
5: * @copyright Copyright 2013 Rackspace US, Inc. See COPYING for licensing information.
6: * @license https://www.apache.org/licenses/LICENSE-2.0 Apache 2.0
7: * @version 1.6.0
8: * @author Glen Campbell <glen.campbell@rackspace.com>
9: * @author Jamie Hannaford <jamie.hannaford@rackspace.com>
10: */
11:
12: namespace OpenCloud\LoadBalancer\Resource;
13:
14: /**
15: * This defines a read-only SubResource - one that cannot be created, updated,
16: * or deleted. Many subresources are like this, and this simplifies their
17: * class definitions.
18: */
19: abstract class Readonly extends SubResource
20: {
21:
22: public function create($params = array())
23: {
24: return $this->noCreate();
25: }
26:
27: public function update($params = array())
28: {
29: return $this->noUpdate();
30: }
31:
32: public function delete()
33: {
34: return $this->noDelete();
35: }
36:
37: }
38: