This repository was archived by the owner on Sep 27, 2024. It is now read-only.
Commit b8a572a 1 parent 7ad3d62 commit b8a572a Copy full SHA for b8a572a
File tree 7 files changed +7
-28
lines changed
7 files changed +7
-28
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ class BoolValue implements BoolType
11
11
{
12
12
use AsBool;
13
13
14
- public function __construct (protected bool $ value )
15
- {
16
- $ this ->value = $ value ;
17
- }
14
+ public function __construct (protected bool $ value ) {}
18
15
19
16
public function get (): bool
20
17
{
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ class FloatValue implements FloatType
11
11
{
12
12
use AsFloat;
13
13
14
- public function __construct (protected float $ value )
15
- {
16
- $ this ->value = $ value ;
17
- }
14
+ public function __construct (protected float $ value ) {}
18
15
19
16
public function get (): float
20
17
{
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ class IntValue implements IntType
11
11
{
12
12
use AsInt;
13
13
14
- public function __construct (protected int $ value )
15
- {
16
- $ this ->value = $ value ;
17
- }
14
+ public function __construct (protected int $ value ) {}
18
15
19
16
public function get (): int
20
17
{
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ class NumberValue implements NumberType
11
11
{
12
12
use AsNumber;
13
13
14
- public function __construct (protected int |float $ value )
15
- {
16
- $ this ->value = $ value ;
17
- }
14
+ public function __construct (protected int |float $ value ) {}
18
15
19
16
public function get (): int |float
20
17
{
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ class NumericValue implements NumericType
11
11
{
12
12
use AsNumeric;
13
13
14
- public function __construct (protected int |float |string $ value )
15
- {
16
- $ this ->value = $ value ;
17
- }
14
+ public function __construct (protected int |float |string $ value ) {}
18
15
19
16
public function get (): int |float |string
20
17
{
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ class ScalarValue implements ScalarType
11
11
{
12
12
use AsScalar;
13
13
14
- public function __construct (protected bool |int |float |string $ value )
15
- {
16
- $ this ->value = $ value ;
17
- }
14
+ public function __construct (protected bool |int |float |string $ value ) {}
18
15
19
16
public function get (): bool |int |float |string
20
17
{
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ class StringValue implements StringType
11
11
{
12
12
use AsString;
13
13
14
- public function __construct (protected string $ value )
15
- {
16
- $ this ->value = $ value ;
17
- }
14
+ public function __construct (protected string $ value ) {}
18
15
19
16
public function get (): string
20
17
{
You can’t perform that action at this time.
0 commit comments