Beispiel #1
0
 /**
  * Wrap the Element in another element
  *
  * @param string|Element $element The element's tag
  *
  * @return Element
  */
 public function wrapWith($element, $name = null)
 {
     if ($element instanceof Tag) {
         return $element->nest($this, $name);
     }
     return Element::create($element)->nest($this, $name);
 }