Bristol SU Support Package
ActivityDisabled.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
7 class ActivityDisabled extends \Exception
8 {
9 
14  protected $activity;
15 
22  public static function fromActivity(Activity $activity) {
23  $exception = new self;
24  $exception->setActivity($activity);
25  return $exception;
26  }
27 
33  public function setActivity(Activity $activity)
34  {
35  $this->activity = $activity;
36  }
37 
43  public function activity()
44  {
45  return $this->activity;
46  }
47 
48 }