Merge pull request #16059 from eileenmcnaughton/mem_val2
[civicrm-core.git] / CRM / Contribute / Exception / FutureContributionPageException.php
1 <?php
2
3 class CRM_Contribute_Exception_FutureContributionPageException extends Exception {
4 private $id;
5
6 /**
7 * @param string $message
8 * @param int $id
9 */
10 public function __construct($message, $id) {
11 parent::__construct($message);
12 $this->id = $id;
13 CRM_Core_Error::debug_log_message('Access to contribution page with start date in future attempted - page number ' . $id);
14 }
15
16 /**
17 * Get Contribution page ID.
18 *
19 * @return int
20 */
21 public function getID() {
22 return $this->id;
23 }
24
25 }