-
-
Save arnaud-lb/b86c8d989877270a7643 to your computer and use it in GitHub Desktop.
This file contains 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 | |
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