Skip to content

Instantly share code, notes, and snippets.

@Akii
Created November 2, 2015 21:13
Show Gist options
  • Save Akii/e09d95f8b00c2f53727d to your computer and use it in GitHub Desktop.
Save Akii/e09d95f8b00c2f53727d to your computer and use it in GitHub Desktop.
class Event {
public $things;
public function __construct($things) { $this->things = $things; }
}
class Event_v2 {
public $things;
public $anotherThing;
static public function fromEvent(Event $e) { return new Event_v2($e->things, 'no other thing here at this point bro'); }
public function __construct($things, $anotherThing) { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment