Skip to content

Instantly share code, notes, and snippets.

@arnaud-lb
Created July 28, 2015 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnaud-lb/b86c8d989877270a7643 to your computer and use it in GitHub Desktop.
Save arnaud-lb/b86c8d989877270a7643 to your computer and use it in GitHub Desktop.
<?php
trait HtmlTrait
{
protected function parseInlineHtml($text)
{
}
}
trait ListTrait
{
protected function identifyUl($line)
{
}
}
class Markdown
{
use HtmlTrait {
parseInlineHtml as private;
}
use ListTrait {
identifyUl as protected identifyBUl;
}
public function __construct()
{
$reflection = new \ReflectionClass($this);
foreach($reflection->getMethods(\ReflectionMethod::IS_PROTECTED) as $method) {
}
}
}
new Markdown();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment