Skip to content

Instantly share code, notes, and snippets.

@lloc
Created March 23, 2018 09:47
Show Gist options
  • Save lloc/abca4b27900497594b3485da2dd6f4d7 to your computer and use it in GitHub Desktop.
Save lloc/abca4b27900497594b3485da2dd6f4d7 to your computer and use it in GitHub Desktop.
<?php
namespace wctrn\realloc;
class Post {
public static function init() {
return new static();
}
public function get_content() {
return 'Hello WordCamp!';
}
}
echo Post::init()->get_content(), PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment