parent = $args['parent'] ?? null; $this->type = $args['type'] ?? Base::SUB; $this->capability = $args['capability']; $this->slug = $args['slug']; $this->callback = $args['callback']; $this->icon = $args['icon'] ?? null; $this->position = $args['position']; // Plugin Profile self::$profile = Profile::getInstance(); } /** * @return string|null */ public function parent(): ?string { return $this->parent; } public function type(): string { return $this->type; } public function capability(): string { return $this->capability; } public function slug(): string { return $this->slug; } /** * @return mixed */ public function callback() { return $this->callback; } /** * @return string|null */ public function icon(): ?string { return $this->icon; } public function position(): float { return $this->position; } /** * To print the menu content * @return void */ public function output(): void { } }