| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Creates message. |
| 56 | 56 | * |
| 57 | - * @return static | |
| 57 | + * @return self | |
| 58 | 58 | */ |
| 59 | 59 | public static function create(): self { |
| 60 | 60 | return new self(); |
| 61 | 61 | } |
| @@ -68,8 +68,9 @@ | ||
| 68 | 68 | * @return $this |
| 69 | 69 | */ |
| 70 | 70 | public function setText( string $message ): self { |
| 71 | 71 | $this->message = $message; |
| 72 | + | |
| 72 | 73 | return $this; |
| 73 | 74 | } |
| 74 | 75 | |
| 75 | 76 | /** |
| @@ -80,8 +81,9 @@ | ||
| 80 | 81 | * @return $this |
| 81 | 82 | */ |
| 82 | 83 | public function setType( string $type ): self { |
| 83 | 84 | $this->type = $type; |
| 85 | + | |
| 84 | 86 | return $this; |
| 85 | 87 | } |
| 86 | 88 | |
| 87 | 89 | /** |
| @@ -92,8 +94,9 @@ | ||
| 92 | 94 | * @return $this |
| 93 | 95 | */ |
| 94 | 96 | public function setRenderer( string $renderer ): self { |
| 95 | 97 | $this->renderer = $renderer; |
| 98 | + | |
| 96 | 99 | return $this; |
| 97 | 100 | } |
| 98 | 101 | |
| 99 | 102 | /** |
| @@ -104,8 +107,9 @@ | ||
| 104 | 107 | * @return $this |
| 105 | 108 | */ |
| 106 | 109 | public function setContext( string $context ): self { |
| 107 | 110 | $this->context = $context; |
| 111 | + | |
| 108 | 112 | return $this; |
| 109 | 113 | } |
| 110 | 114 | |
| 111 | 115 | /** |
| @@ -116,8 +120,9 @@ | ||
| 116 | 120 | * @return $this |
| 117 | 121 | */ |
| 118 | 122 | public function setEscape( bool $escape ): self { |
| 119 | 123 | $this->escape = $escape; |
| 124 | + | |
| 120 | 125 | return $this; |
| 121 | 126 | } |
| 122 | 127 | |
| 123 | 128 | /** |
| @@ -122,9 +127,9 @@ | ||
| 122 | 127 | |
| 123 | 128 | /** |
| 124 | 129 | * Converts object to array. |
| 125 | 130 | * |
| 126 | - * @return array | |
| 131 | + * @return array<string, string|bool> | |
| 127 | 132 | */ |
| 128 | 133 | public function toArray(): array { |
| 129 | 134 | return get_object_vars( $this ); |
| 130 | 135 | } |