Created
February 16, 2017 02:35
-
-
Save jasonrhodes/435402e4c9f534ec0f2cfe911642a6c5 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
<?php | |
class Wrapped { | |
public function __construct($type) { | |
$class = $type . 'Banner'; | |
$this->instance = new $class(); | |
} | |
} | |
$myThing = new Wrapped('acf')->instance; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment