1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* AppserverIo\Provisioning\Api\Node\ProvisionersNodeTrait |
5
|
|
|
* |
6
|
|
|
* NOTICE OF LICENSE |
7
|
|
|
* |
8
|
|
|
* This source file is subject to the Open Software License (OSL 3.0) |
9
|
|
|
* that is available through the world-wide-web at this URL: |
10
|
|
|
* http://opensource.org/licenses/osl-3.0.php |
11
|
|
|
* |
12
|
|
|
* PHP version 5 |
13
|
|
|
* |
14
|
|
|
* @author Tim Wagner <[email protected]> |
15
|
|
|
* @copyright 2018 TechDivision GmbH <[email protected]> |
16
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
17
|
|
|
* @link https://github.com/appserver-io/provisioning |
18
|
|
|
* @link http://www.appserver.io |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
namespace AppserverIo\Provisioning\Api\Node; |
22
|
|
|
|
23
|
|
|
use AppserverIo\Description\Annotations as DI; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* |
27
|
|
|
* Abstract node that a context's provisioner nodes. |
28
|
|
|
* |
29
|
|
|
* @author Tim Wagner <[email protected]> |
30
|
|
|
* @copyright 2018 TechDivision GmbH <[email protected]> |
31
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
32
|
|
|
* @link https://github.com/appserver-io/provisioning |
33
|
|
|
* @link http://www.appserver.io |
34
|
|
|
*/ |
35
|
|
|
trait ProvisionersNodeTrait |
36
|
|
|
{ |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* The context's provisioner configuration. |
40
|
|
|
* |
41
|
|
|
* @var array |
42
|
|
|
* @DI\Mapping(nodeName="provisioners/provisioner", nodeType="array", elementType="AppserverIo\Provisioning\Api\Node\ProvisionerNode") |
43
|
|
|
*/ |
44
|
|
|
protected $provisioners = array(); |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* Sets the context's provisioner configuration. |
48
|
|
|
* |
49
|
|
|
* @param array $provisioners The context's provisioner configuration |
50
|
|
|
* |
51
|
|
|
* @return void |
52
|
|
|
*/ |
53
|
|
|
public function setProvisioners($provisioners) |
54
|
|
|
{ |
55
|
|
|
$this->provisioners = $provisioners; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* Returns the context's provisioner configuration. |
60
|
|
|
* |
61
|
|
|
* @return array The context's provisioner configuration |
62
|
|
|
*/ |
63
|
|
|
public function getProvisioners() |
64
|
|
|
{ |
65
|
|
|
return $this->provisioners; |
66
|
|
|
} |
67
|
|
|
} |
68
|
|
|
|