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

@param ElementBase $el
@return self
Initialize from ElementBase interface .