Instantly share code, notes, and snippets.

View events.js
class foo {
constructor(){
this._listeners = {};
}
addEventLister(event,callback){
if(!this._listeners[event]){
this._listeners[event] = [];
}
this._listeners[event].push(callback);
View pdfadapterinterface.php
<?php
interface PdfAdapterInterface {
public function combinePdf($pdf1,$pdf2);
}