$saji->setEmail("*****@*****.**"); $iwasaki = new User(); $iwasaki->setName("岩崎", "拓海"); $iwasaki->setEmail("*****@*****.**"); $hayashi = new User(); $hayashi->setName("早矢仕", "玄"); $hayashi->setEmail("*****@*****.**"); $object_seminar = new Seminar(); $object_seminar->setTitle("オブジェクト指向セミナー"); echo $object_seminar->getTitle() . '<BR>'; $object_seminar->attendAccept($iwasaki); $object_seminar->attendAccept($saji); $object_seminar->attendAccept($hayashi); $object_seminar->getAttendList(); $object_seminar->cancelAccept($saji); $object_seminar->getCancelList(); $object_seminar->getAttendList(); echo "<BR><BR><hr>"; echo "<h2>クライアントセミナーテスト</h2>"; echo "<BR>"; $client_seminar = new ClientSeminar(); $google = new Client(); $google->setName("Google"); $google->setEmail("*****@*****.**"); $client_seminar->setClient($google); $client_seminar->setTitle("Google説明会"); $client_seminar->attendAccept($iwasaki); $client_seminar->attendAccept($saji); $client_seminar->attendAccept($hayashi); $client_seminar->getAttendList(); $client_seminar->cancelAccept($saji);