From 396ee255ad060e52cc1dc6ed9bd668932e140988 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Wed, 17 Feb 2021 16:29:03 +0100 Subject: [PATCH] Cleanup --- src/PhpDoc/Tag/DeprecatedTag.php | 11 ----------- src/PhpDoc/Tag/ExtendsTag.php | 11 ----------- src/PhpDoc/Tag/ImplementsTag.php | 11 ----------- src/PhpDoc/Tag/MethodTag.php | 13 ------------- src/PhpDoc/Tag/MethodTagParameter.php | 15 --------------- src/PhpDoc/Tag/MixinTag.php | 11 ----------- src/PhpDoc/Tag/ParamTag.php | 12 ------------ src/PhpDoc/Tag/PropertyTag.php | 13 ------------- src/PhpDoc/Tag/ReturnTag.php | 12 ------------ src/PhpDoc/Tag/TemplateTag.php | 13 ------------- src/PhpDoc/Tag/ThrowsTag.php | 11 ----------- src/PhpDoc/Tag/UsesTag.php | 11 ----------- src/PhpDoc/Tag/VarTag.php | 11 ----------- 13 files changed, 155 deletions(-) diff --git a/src/PhpDoc/Tag/DeprecatedTag.php b/src/PhpDoc/Tag/DeprecatedTag.php index 934b126265..cf0ef9316a 100644 --- a/src/PhpDoc/Tag/DeprecatedTag.php +++ b/src/PhpDoc/Tag/DeprecatedTag.php @@ -17,15 +17,4 @@ public function getMessage(): ?string return $this->message; } - /** - * @param mixed[] $properties - * @return DeprecatedTag - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['message'] - ); - } - } diff --git a/src/PhpDoc/Tag/ExtendsTag.php b/src/PhpDoc/Tag/ExtendsTag.php index 8b13e38dbb..6d6e542fc8 100644 --- a/src/PhpDoc/Tag/ExtendsTag.php +++ b/src/PhpDoc/Tag/ExtendsTag.php @@ -19,15 +19,4 @@ public function getType(): Type return $this->type; } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'] - ); - } - } diff --git a/src/PhpDoc/Tag/ImplementsTag.php b/src/PhpDoc/Tag/ImplementsTag.php index f0c70f2c14..f987d2f8f0 100644 --- a/src/PhpDoc/Tag/ImplementsTag.php +++ b/src/PhpDoc/Tag/ImplementsTag.php @@ -19,15 +19,4 @@ public function getType(): Type return $this->type; } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'] - ); - } - } diff --git a/src/PhpDoc/Tag/MethodTag.php b/src/PhpDoc/Tag/MethodTag.php index 5a72291c08..8650d8e33f 100644 --- a/src/PhpDoc/Tag/MethodTag.php +++ b/src/PhpDoc/Tag/MethodTag.php @@ -48,17 +48,4 @@ public function getParameters(): array return $this->parameters; } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['returnType'], - $properties['isStatic'], - $properties['parameters'] - ); - } - } diff --git a/src/PhpDoc/Tag/MethodTagParameter.php b/src/PhpDoc/Tag/MethodTagParameter.php index 7ee095e60b..95c9d1fc1e 100644 --- a/src/PhpDoc/Tag/MethodTagParameter.php +++ b/src/PhpDoc/Tag/MethodTagParameter.php @@ -58,19 +58,4 @@ public function getDefaultValue(): ?Type return $this->defaultValue; } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'], - $properties['passedByReference'], - $properties['isOptional'], - $properties['isVariadic'], - $properties['defaultValue'] - ); - } - } diff --git a/src/PhpDoc/Tag/MixinTag.php b/src/PhpDoc/Tag/MixinTag.php index 368d486860..31be7f58c7 100644 --- a/src/PhpDoc/Tag/MixinTag.php +++ b/src/PhpDoc/Tag/MixinTag.php @@ -19,15 +19,4 @@ public function getType(): Type return $this->type; } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'] - ); - } - } diff --git a/src/PhpDoc/Tag/ParamTag.php b/src/PhpDoc/Tag/ParamTag.php index e72a687d2a..2b006d3ef8 100644 --- a/src/PhpDoc/Tag/ParamTag.php +++ b/src/PhpDoc/Tag/ParamTag.php @@ -36,16 +36,4 @@ public function withType(Type $type): TypedTag return new self($type, $this->isVariadic); } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'], - $properties['isVariadic'] - ); - } - } diff --git a/src/PhpDoc/Tag/PropertyTag.php b/src/PhpDoc/Tag/PropertyTag.php index 631fe82e6b..c6dce435b0 100644 --- a/src/PhpDoc/Tag/PropertyTag.php +++ b/src/PhpDoc/Tag/PropertyTag.php @@ -39,17 +39,4 @@ public function isWritable(): bool return $this->writable; } - /** - * @param mixed[] $properties - * @return PropertyTag - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'], - $properties['readable'], - $properties['writable'] - ); - } - } diff --git a/src/PhpDoc/Tag/ReturnTag.php b/src/PhpDoc/Tag/ReturnTag.php index c9636fad66..3374939e8a 100644 --- a/src/PhpDoc/Tag/ReturnTag.php +++ b/src/PhpDoc/Tag/ReturnTag.php @@ -41,16 +41,4 @@ public function toImplicit(): self return new self($this->type, false); } - /** - * @param mixed[] $properties - * @return ReturnTag - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'], - $properties['isExplicit'] - ); - } - } diff --git a/src/PhpDoc/Tag/TemplateTag.php b/src/PhpDoc/Tag/TemplateTag.php index 8180fdd6b4..36f4b774e1 100644 --- a/src/PhpDoc/Tag/TemplateTag.php +++ b/src/PhpDoc/Tag/TemplateTag.php @@ -36,17 +36,4 @@ public function getVariance(): TemplateTypeVariance return $this->variance; } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['name'], - $properties['bound'], - $properties['variance'] - ); - } - } diff --git a/src/PhpDoc/Tag/ThrowsTag.php b/src/PhpDoc/Tag/ThrowsTag.php index faa7fb2dde..d9c690ca36 100644 --- a/src/PhpDoc/Tag/ThrowsTag.php +++ b/src/PhpDoc/Tag/ThrowsTag.php @@ -19,15 +19,4 @@ public function getType(): Type return $this->type; } - /** - * @param mixed[] $properties - * @return ThrowsTag - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'] - ); - } - } diff --git a/src/PhpDoc/Tag/UsesTag.php b/src/PhpDoc/Tag/UsesTag.php index 3d75976b58..1c10eb203b 100644 --- a/src/PhpDoc/Tag/UsesTag.php +++ b/src/PhpDoc/Tag/UsesTag.php @@ -19,15 +19,4 @@ public function getType(): Type return $this->type; } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'] - ); - } - } diff --git a/src/PhpDoc/Tag/VarTag.php b/src/PhpDoc/Tag/VarTag.php index c39a0abfce..4966f802c2 100644 --- a/src/PhpDoc/Tag/VarTag.php +++ b/src/PhpDoc/Tag/VarTag.php @@ -28,15 +28,4 @@ public function withType(Type $type): TypedTag return new self($type); } - /** - * @param mixed[] $properties - * @return self - */ - public static function __set_state(array $properties): self - { - return new self( - $properties['type'] - ); - } - }