Differential D20252 Diff 48373 src/applications/harbormaster/exception/HarbormasterRestartException.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/exception/HarbormasterRestartException.php
- This file was added.
<?php | |||||
final class HarbormasterRestartException extends Exception { | |||||
private $title; | |||||
private $body = array(); | |||||
public function __construct($title, $body = null) { | |||||
$this->setTitle($title); | |||||
$this->appendParagraph($body); | |||||
parent::__construct($title); | |||||
} | |||||
public function setTitle($title) { | |||||
$this->title = $title; | |||||
return $this; | |||||
} | |||||
public function getTitle() { | |||||
return $this->title; | |||||
} | |||||
public function appendParagraph($description) { | |||||
$this->body[] = $description; | |||||
return $this; | |||||
} | |||||
public function getBody() { | |||||
return $this->body; | |||||
} | |||||
} |