コード例 #1
0
 public function render(Tag $tag)
 {
     if (!$tag instanceof Input) {
         throw new Exception(__CLASS__ . ' only renders Tag objects that instances of ' . Input::class);
     }
     $tag->assignDefaultValue();
     $tagRenderer = new DefaultTagRenderer();
     return $tagRenderer->render($tag);
 }