original_string: public static function fromElementBase(ElementBase $el): self
      {
          // if element is already wrapped
          if ($el instanceof self) {
              return $el;
          }
          return new self($el->asElement());
      }
code: public static function fromElementBase(ElementBase $el): self
      {
          // if element is already wrapped
          if ($el instanceof self) {
              return $el;
          }
          return new self($el->asElement());
      }
code_tokens: public static function fromElementBase ( ElementBase $ el ) : self { // if element is already wrapped if ( $ el instanceof self ) { return $ el ; } return new self ( $ el -> asElement ( ) ) ; }
docstring: Initialize from ElementBase interface.
  
  @param ElementBase $el
  @return self
docstring_tokens: Initialize from ElementBase interface .