Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a51df03

Browse files
committed
-
1 parent a01e3a1 commit a51df03

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/Symfony/Component/Notifier/Notification/Notification.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,21 @@ class Notification
3636
public const IMPORTANCE_MEDIUM = 'medium';
3737
public const IMPORTANCE_LOW = 'low';
3838

39+
private array $channels = [];
40+
private string $subject = '';
3941
private string $content = '';
4042
private string $emoji = '';
4143
private ?FlattenException $exception = null;
4244
private string $exceptionAsString = '';
4345
private string $importance = self::IMPORTANCE_HIGH;
4446

45-
public function __construct(
46-
private string $subject = '',
47-
/**
48-
* @var list<string>
49-
*/
50-
private array $channels = [],
51-
) {
47+
/**
48+
* @param list<string> $channels
49+
*/
50+
public function __construct(string $subject = '', array $channels = [])
51+
{
52+
$this->subject = $subject;
53+
$this->channels = $channels;
5254
}
5355

5456
/**

0 commit comments

Comments
 (0)