Created
November 2, 2015 21:13
-
-
Save Akii/e09d95f8b00c2f53727d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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