Advertisement
Guest User

Untitled

a guest
Jan 7th, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. class PhpErrorCollector implements WriterInterface {
  2.  
  3.     protected $errors;
  4.    
  5.     public function __construct() {
  6.         $this->errors = array();
  7.     }
  8.    
  9.     public function getErrors() {
  10.         return $this->errors;        
  11.     }
  12.    
  13.     public function addFilter($filter) {
  14.         return $this;
  15.     }
  16.  
  17.     public function setFormatter($formatter) {        
  18.         return $this;
  19.     }
  20.  
  21.     public function shutdown() {
  22.         return $this;
  23.     }
  24.  
  25.     public function write(array $event) {
  26.         $this->errors[] = $event;
  27.         return $this;
  28.     }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement