Inizio dockerizzazione
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
Author: Riccardo Di Dato
|
||||
Creation Date: 26/gen/2016
|
||||
*/
|
||||
|
||||
class MultimessageException extends CoreException {
|
||||
protected $messageList;
|
||||
|
||||
public function __construct(array $arr){
|
||||
$this->messageList = $arr;
|
||||
$this->message = $this->getMessageMerged("\n");
|
||||
}
|
||||
|
||||
public function addMessage($msg){
|
||||
$this->messageList[]=$msg;
|
||||
$this->message = $this->getMessageMerged("\n");
|
||||
}
|
||||
|
||||
public function getMessageList(){
|
||||
return $this->messageList;
|
||||
}
|
||||
|
||||
public function getMessageMerged($glue){
|
||||
return implode($glue,$this->getMessageList());
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user