no message

This commit is contained in:
a-kizaki
2026-10-06 12:10:09 +09:00
commit 9c2090ffa2
156 changed files with 14850 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace Common;
require_once __DIR__ . '/NotificationInterface.php';
/**
* SMS通知を行うクラス
*/
// TODO: SmsNotification クラスを作成し、NotificationInterface を実装してください
// TODO: private プロパティ $phoneNumber を定義してください
/**
* コンストラクタ
*
* @param string $phoneNumber 送信先の電話番号
*/
// TODO: コンストラクタを実装してください
// 引数で受け取った $phoneNumber を $this->phoneNumber に設定
/**
* SMSで通知を送信する
*
* @param string $title 通知のタイトル
* @param string $message 通知の本文
* @return void
*/
// TODO: send メソッドを実装してください
// 以下の内容を表示(各行の最後に <br> を付ける):
// - "📱 SMS送信"
// - "宛先: " . $this->phoneNumber
// - "内容: [" . $title . "] " . $message
// - "SMSを送信しました。"
/**
* 送信先の電話番号を取得する
*
* @return string 電話番号
*/
// TODO: getDestination メソッドを実装してください
// $this->phoneNumber を返す