mainConfig = $mainConfig; $this->util = $util; $this->objectHandler = $objectHandler; $this->userHandler = $userHandler; $this->userGroupHandler = $userGroupHandler; $this->accessHandler = $accessHandler; } /** * @return Wordpress */ protected function getWordpress(): Wordpress { return $this->wordpress; } /** * @return MainConfig */ protected function getMainConfig(): MainConfig { return $this->mainConfig; } /** * @return Util */ protected function getUtil(): Util { return $this->util; } /** * @return UserHandler */ protected function getUserHandler(): UserHandler { return $this->userHandler; } /** * @return UserGroupHandler */ protected function getUserGroupHandler(): UserGroupHandler { return $this->userGroupHandler; } protected function removePostFromList($postType): bool { return $this->mainConfig->hidePostType($postType) === true || $this->wordpressConfig->atAdminPanel() === true; } }