Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions classes/Sender.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ class Sender
*/
private \modules\push\dtos\Message $_message;

/**
* @var string $_type 발송타입
*/
private string $_type;

/**
* 알림 전송자 클래스를 정의한다.
*
Expand Down Expand Up @@ -149,6 +154,26 @@ public function setContent(string $code, mixed $content): \modules\push\Sender
return $this;
}

/**
* 발송타입을 가져온다.
*
* @param string $type 발송타입
*/
public function getType(): string
{
return $this->_type;
}

/**
* 발송타입을 설정한다.
*
* @param string $type 발송타입
*/
public function setType(string $type): void
{
$this->_type = $type;
}

/**
* 알림메시지 객체를 생성한다.
*
Expand Down Expand Up @@ -253,6 +278,7 @@ public function send(?int $sended_at = null): bool
'sended_at' => $sended_at,
'is_checked' => 'FALSE',
'is_readed' => 'FALSE',
'type' => $this->_type,
])
->execute();
}
Expand Down