Skip to content

Commit 6fed24b

Browse files
committed
Method: removed unnecessary constructor
1 parent 16a6b2b commit 6fed24b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/PhpGenerator/Method.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ public static function from($method): self
4848
}
4949

5050

51-
public function __construct(string $name)
52-
{
53-
if (!Helpers::isIdentifier($name)) {
54-
throw new Nette\InvalidArgumentException("Value '$name' is not valid name.");
55-
}
56-
$this->name = $name;
57-
}
58-
59-
6051
public function __toString(): string
6152
{
6253
return Helpers::formatDocComment($this->comment . "\n")

0 commit comments

Comments
 (0)