Skip to content

Commit de05664

Browse files
committed
remove extra setters
1 parent bef28f4 commit de05664

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

src/Routing/State.php

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,6 @@ public function __construct(string $prefix = '', array $middleware = [], ?string
3737
$this->domain = $domain;
3838
}
3939

40-
/**
41-
* Create a state from the given array
42-
*
43-
* @param array $attributes
44-
* @return self
45-
*/
46-
public static function createFromArray(array $attributes): self
47-
{
48-
return new static(
49-
$attributes[static::PREFIX ?? ''],
50-
$attributes[static::MIDDLEWARE ?? []],
51-
$attributes[static::DOMAIN ?? null]
52-
);
53-
}
54-
5540
/**
5641
* Append new attributes to the existing ones
5742
*
@@ -72,14 +57,6 @@ public function getPrefix(): string
7257
return $this->prefix;
7358
}
7459

75-
/**
76-
* @param string $prefix
77-
*/
78-
public function setPrefix(string $prefix): void
79-
{
80-
$this->prefix = $prefix;
81-
}
82-
8360
/**
8461
* @return array
8562
*/
@@ -88,27 +65,11 @@ public function getMiddleware(): array
8865
return $this->middleware;
8966
}
9067

91-
/**
92-
* @param array $middleware
93-
*/
94-
public function setMiddleware(array $middleware): void
95-
{
96-
$this->middleware = $middleware;
97-
}
98-
9968
/**
10069
* @return string|null
10170
*/
10271
public function getDomain(): ?string
10372
{
10473
return $this->domain;
10574
}
106-
107-
/**
108-
* @param string|null $domain
109-
*/
110-
public function setDomain(?string $domain): void
111-
{
112-
$this->domain = $domain;
113-
}
11475
}

0 commit comments

Comments
 (0)