Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PhpErrorCollector implements WriterInterface {
- protected $errors;
- public function __construct() {
- $this->errors = array();
- }
- public function getErrors() {
- return $this->errors;
- }
- public function addFilter($filter) {
- return $this;
- }
- public function setFormatter($formatter) {
- return $this;
- }
- public function shutdown() {
- return $this;
- }
- public function write(array $event) {
- $this->errors[] = $event;
- return $this;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement