src/Element/Menu.php
public function init()
    {
        $this->element = new wxMenu;

        $rawParent = $this->parent->getRaw();

        if ($rawParent instanceof wxMenuBar or $rawParent instanceof wxMenu) {
            $rawParent->Append($this->element, $this->title);
        }
    }
public function init()
    {
        $this->element = new wxMenu;

        $rawParent = $this->parent->getRaw();

        if ($rawParent instanceof wxMenuBar or $rawParent instanceof wxMenu) {
            $rawParent->Append($this->element, $this->title);
        }
    }
Initialise the object

@return void