From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../williamdes/mariadb-mysql-kbs/src/KBEntry.php | 151 --------------------- 1 file changed, 151 deletions(-) delete mode 100644 srcs/phpmyadmin/vendor/williamdes/mariadb-mysql-kbs/src/KBEntry.php (limited to 'srcs/phpmyadmin/vendor/williamdes/mariadb-mysql-kbs/src/KBEntry.php') diff --git a/srcs/phpmyadmin/vendor/williamdes/mariadb-mysql-kbs/src/KBEntry.php b/srcs/phpmyadmin/vendor/williamdes/mariadb-mysql-kbs/src/KBEntry.php deleted file mode 100644 index 7ff7e9c..0000000 --- a/srcs/phpmyadmin/vendor/williamdes/mariadb-mysql-kbs/src/KBEntry.php +++ /dev/null @@ -1,151 +0,0 @@ -name = $name; - if ($type !== null) { - $this->type = $type; - } - if ($dynamic !== null) { - $this->dynamic = $dynamic; - } - } - - /** - * Get the variable name - * - * @return string - */ - public function getName(): string - { - return $this->name; - } - - /** - * Is the variable dynamic - * - * @return bool|null - */ - public function isDynamic(): ?bool - { - return $this->dynamic; - } - - /** - * Get the variable type - * - * @return string|null - */ - public function getType(): ?string - { - return $this->type; - } - - /** - * Variable has documentations - * - * @return bool - */ - public function hasDocumentations(): bool - { - if ($this->docs === null) { - return false; - } else { - return count($this->docs) > 0; - } - } - - /** - * Get all documentations - * - * @return KBDocumentation[] - */ - public function getDocumentations(): array - { - return $this->docs; - } - - /** - * Add documentation link - * - * @param string $url The URL - * @param string|null $anchor The anchor - * @return KBDocumentation - */ - public function addDocumentation(string $url, ?string $anchor = null ): KBDocumentation - { - $this->url = $url; - if ($this->docs === null) { - $this->docs = array(); - } - $kbd = new KBDocumentation($url, $anchor); - $this->docs[] = $kbd; - return $kbd; - } - - /** - * Used for json_encode function - * This can seem useless, do not remove it. - * - * @return array - */ - public function jsonSerialize(): array - { - $outObj = array(); - $outObj['name'] = $this->name; - if ($this->type !== null) { - $outObj['type'] = $this->type; - } - if ($this->dynamic !== null) { - $outObj['dynamic'] = $this->dynamic; - } - if ($this->docs !== null) { - $outObj['docs'] = $this->docs; - } - return $outObj; - } - -} -- cgit