-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPlugin.php
More file actions
41 lines (33 loc) · 1.18 KB
/
Plugin.php
File metadata and controls
41 lines (33 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
declare(strict_types=1);
namespace Internal\DLoad\Module\Config\Schema\Action\Velox;
use Internal\DLoad\Module\Common\Internal\Attribute\XPath;
/**
* Velox plugin configuration.
*
* Represents a single plugin to be included in the RoadRunner build.
* Plugins can be specified with various levels of detail:
* - Minimal: <plugin name="http" />
* - With version: <plugin name="temporal" version="^4.2.1" />
* - Full specification: <plugin name="custom" version="^1.0" owner="my-org" repository="rr-custom" />
*
* @internal
*/
final class Plugin
{
/** @var non-empty-string $name Plugin name (required) */
#[XPath('@name')]
public string $name;
/** @var non-empty-string|null $version Plugin version constraint */
#[XPath('@version')]
public ?string $version = null;
/** @var non-empty-string|null $owner Repository owner/organization */
#[XPath('@owner')]
public ?string $owner = null;
/** @var non-empty-string|null $repository Repository name */
#[XPath('@repository')]
public ?string $repository = null;
/** @var non-empty-string|null $replace Replacement source */
#[XPath('@replace')]
public ?string $replace = null;
}