Skip to content

Commit 2b3c02f

Browse files
authored
Merge pull request #8 from cspray/task/update-arch-decision-remove-getter
Allow dev version of arch-decision, remove get prefix
2 parents bbdd530 + 56da7f7 commit 2b3c02f

8 files changed

+58
-52
lines changed

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": ["MIT"],
55
"require": {
66
"php": "^8.1",
7-
"cspray/annotated-container-adr": "^2"
7+
"cspray/annotated-container-adr": "^3.2"
88
},
99
"autoload": {
1010
"psr-4": {

Diff for: composer.lock

+45-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/Inject.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ public function __construct(
4747
public readonly array $profiles = []
4848
) {}
4949

50-
public function getValue() : mixed {
50+
public function value() : mixed {
5151
return $this->value;
5252
}
5353

5454
/**
5555
* @return list<string>
5656
*/
57-
public function getProfiles() : array {
57+
public function profiles() : array {
5858
return $this->profiles;
5959
}
6060

61-
public function getFrom() : ?string {
61+
public function from() : ?string {
6262
return $this->from;
6363
}
6464
}

Diff for: src/InjectAttribute.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface InjectAttribute {
1616
*
1717
* @return mixed
1818
*/
19-
public function getValue() : mixed;
19+
public function value() : mixed;
2020

2121
/**
2222
* A list of profiles that have to be active for this Attribute to be used.
@@ -25,14 +25,14 @@ public function getValue() : mixed;
2525
*
2626
* @return list<string>
2727
*/
28-
public function getProfiles() : array;
28+
public function profiles() : array;
2929

3030
/**
3131
* If the actual value for this injection should come from a ParameterStore implementation then return its name,
3232
* otherwise return null.
3333
*
3434
* @return string|null
3535
*/
36-
public function getFrom() : ?string;
36+
public function from() : ?string;
3737

3838
}

Diff for: src/Service.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public function __construct(
2626
public readonly ?string $name = null
2727
) {}
2828

29-
public function getProfiles() : array {
29+
public function profiles() : array {
3030
return $this->profiles;
3131
}
3232

3333
public function isPrimary() : bool {
3434
return $this->primary;
3535
}
3636

37-
public function getName() : ?string {
37+
public function name() : ?string {
3838
return $this->name;
3939
}
4040
}

Diff for: src/ServiceAttribute.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface ServiceAttribute {
1818
*
1919
* @return list<string>
2020
*/
21-
public function getProfiles() : array;
21+
public function profiles() : array;
2222

2323
/**
2424
* Return whether this concrete service should be considered the primary service when resolving an abstract alias.
@@ -32,6 +32,6 @@ public function isPrimary() : bool;
3232
*
3333
* @return string|null
3434
*/
35-
public function getName() : ?string;
35+
public function name() : ?string;
3636

3737
}

Diff for: src/ServiceDelegate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class ServiceDelegate implements ServiceDelegateAttribute {
2222
*/
2323
public function __construct(public readonly ?string $service = null) {}
2424

25-
public function getService() : ?string {
25+
public function service() : ?string {
2626
return $this->service;
2727
}
2828
}

Diff for: src/ServiceDelegateAttribute.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ interface ServiceDelegateAttribute {
1616
*
1717
* @return string|null
1818
*/
19-
public function getService() : ?string;
19+
public function service() : ?string;
2020

2121
}

0 commit comments

Comments
 (0)