Skip to content

Instantly share code, notes, and snippets.

@arnaud-lb
Created Jul 28, 2015
Embed
What would you like to do?
<?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